[Pkg-ltsp-devel] Bug#432024: ltspfs: Provide non-root users access to the local hard drive on the client
Petter Reinholdtsen
pere at hungry.com
Sun Jul 8 07:08:56 UTC 2007
[Oliver Grawert]
> look at this snippet from scripts/add_fstab_entry:
>
> # mount in the client session
> if [ -S /var/run/ldm_socket ]; then
> /usr/bin/ssh -S /var/run/ldm_socket server \
> "/usr/sbin/ltspfsmounter ${MOUNTPOINT} add"
> else
> echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.delayed-mount
> if [ ! -z "${FIXEDDEVICE}" ]; then
> echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.static-device
> else
> echo "${MOUNTPOINT} ${1} ${2}" >> /var/run/.delayed-mount
> fi
> fi
This code is very strange. Why '! -z' instead of '-n'? Why is
/var/run/.delayed-mount updated twice? I am utterly confused as to
what the code after the first else is supposed to do. Anyone know?
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-ltsp-devel
mailing list