logo       

[sshfs] sshfs: pwd writes to standard err not to standard out - error when : msg#00014

file-systems.fuse.sshfs

Subject: [sshfs] sshfs: pwd writes to standard err not to standard out - error when starting acroread

Hi,

we are currently experimenting with replacing client sided nfs mounts with
sshfs, since this has significant security advantages. At a first glance,
sshfs seams to be really a great alternative. Thank you very much for your
great work!

Of course there are still some open issues. The feature request for
implementing locking was also one of the first observations when trying to
use sshfs for mounting remote home directories ;-) since this prevents KDE
from running properly.

When testing various applications, I found that acroread (version 7.0.8) does
not work properly if it is invoked from an sshfs mounted directory. After
looking at the wrapper script, I found out that the problem is that pwd
prints it's output to standard error instead standard out: The acroread
wrapper script contains the line

cwd="`/bin/pwd 2> /dev/null`"

If this is invoked on a local file system, cwd is assigned the correct value.
If it is invoked within a sshfs mounted directory, cwd will be empty since
pwd writes the output to standard error.

Yet another very strange observation: if I issue the command

$ /bin/pwd

I get the error message

/bin/pwd: couldn't find directory entry in `..' with matching i-node

using

pwd

however returns on standard error the current working directory ... This is
even more strange, since pwd is actually /bin/pwd.

VERSIONS:
acroread: 7.0.8
pwd: contained in GNU bash, version 3.1.17(1)
SSHFS version 1.5
FUSE library version: 2.5.2
fusermount version: 2.5.2
using FUSE kernel interface version 7.5
kernel 2.6.16.21-0.25-smp
SUSE 10.1

Thanks again for the great work. Cheers

Bernd

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise