summaryrefslogtreecommitdiffstats
path: root/support/nfs
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-21 14:23:00 -0400
committerSteve Dickson <steved@redhat.com>2011-07-21 14:26:11 -0400
commit1ce0374d445d8a3dbdfb3e9da4c76be9df44666b (patch)
tree648f1f9665a5a049b8db353900c6e319727c31d1 /support/nfs
parent0ac600d4766a2e54c6da61148a3266155d36b06a (diff)
downloadnfs-utils-1ce0374d445d8a3dbdfb3e9da4c76be9df44666b.tar.gz
nfs-utils-1ce0374d445d8a3dbdfb3e9da4c76be9df44666b.tar.xz
nfs-utils-1ce0374d445d8a3dbdfb3e9da4c76be9df44666b.zip
Statd should always 'chdir' to its state directory.
s statd can be started by 'mount' which can sometimes be run by a normal user, the current-working-directory could be anything. In partcular it could be in a mounted filesystem. As 'statd' continues running as a daemon it could keep prevent that filesystem from being unmounted. statd does currently 'chdir' to the state directory, but only if the state directory is not owned by root. This is wrong - it should check for root after the chdir, not before. So swap the two if statements around. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs')
0 files changed, 0 insertions, 0 deletions