[1136] in Athena Bugs
re: (VS2) Version 6.0C: "source" in csh doesn't distinguish executables
daemon@ATHENA.MIT.EDU (John T Kohl)
Thu Oct 6 14:30:10 1988
Date: Thu, 6 Oct 88 14:29:50 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU, jik@ATHENA.MIT.EDU
In-Reply-To: bugs:[1135]
This is still a bug, though. If I set the permissions on an RT
executable to 111 and then attempt to run it on an RT, it runs
perfectly.
This will only work on the local disk. NFS will not permit you to read
a file with permissions 111, and that means you can't demand page it
over the network! (There is no way for an NFS server to tell if you are
reading it for reading or for executing, so it requires you to have read
permission).
And this explains why '111' gives you 'cannot open' rather than 'not an
RT executable', since it tries to read the magic number to make the
determination.
Example:
[lycus:/mit/jtkohl/rtbin]% chmod 111 grabcons
[lycus:/mit/jtkohl/rtbin]% ./grabcons
./grabcons: ./grabcons: cannot open
Exit 1 ./grabcons
[lycus:/mit/jtkohl/rtbin]% chmod 755 grabcons
[lycus:/mit/jtkohl/rtbin]% ./grabcons
./grabcons: not a VAX executable
[lycus:/mit/jtkohl/rtbin]% df .
PRIAM.MIT.EDU:/mit/jtkohl
424302 361577 20294 95% /mit/jtkohl
[lycus:/mit/jtkohl/rtbin]%
John