[2643] in Athena Bugs
6.3: AFS "getwd" problem+FIX
daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Tue Jul 25 13:28:45 1989
Date: Tue, 25 Jul 89 13:28:22 EDT
From: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
[I reported this bugfix verbally to Ken and Ezra, and am following up
with this report so that the fix hopefully doesn't get lost].
There has been at least one case reported of getwd() not working
correctly on AFS; that is, on certain client machines, it wouldn't
work, reporting an error message of "can't stat ..", if the current
directory was located in AFS.
I have found a way to reproduce this problem, and, if this was indeed
the cause, a way to prevent it from happening.
If the local directory /afs (which is covered by mounting AFS) doesn't
have the right protection, then pwd/getwd() reports the same error.
Adding the line:
chmod 755 /afs
to /etc/rc right before starting afsd should prevent this from
happening again.
This is arguably a kernel misfeature, but it's the wrong time to go
digging for the "right" fix.
- Bill