[1466] in Athena Bugs
(VS2) Version 6.0R: attach ignores mount error message.
daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Sun Dec 4 22:27:44 1988
Date: Sun, 4 Dec 88 22:27:20 EST
From: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: rfrench@ATHENA.MIT.EDU
System type, version: (VS2) Version 6.0R (probably in RT as well).
System name: anubis
What's wrong:
attach ignores an error return code from rpc.mountd.
For example:
% attach -e priam:/completely/bogus/directory
priam:/completely/bogus/directory: Can't mount PRIAM.MIT.EDU:/completely/bogus/directory on /priam/completely/bogus/directory - Stale NFS file handle
[The "stale nfs file handle" message arises because attach passes in
stack garbage as the file handle; the server (in this case) sees it as
an invalid file handle and returns ESTALE. By the way, there is no
guarantee that this stack garbage couldn't be a valid file handle.]
What should have happened:
It should have done something similar to what /etc/mount does:
# mount priam:/completely/bogus/directory /mnt
mount: priam:/completely/bogus/directory: No such file or directory
Fix:
Change the code in /source/4.3/bin.athena/attach/mount.c, in the
function mount_nfs(), around line 224, so that it prints error
messages if fhs.fhs_status is nonzero and != EACCES.
- Bill