access()
Henry Spencer
henry at utzoo.uucp
Fri Feb 10 07:09:31 AEST 1989
In article <LFK.89Feb8170836 at mbio.med.upenn.edu> lfk at mbio.med.upenn.edu (Lee Kolakowski) writes:
>...For example, in RCS there are statements like
> access("./RCS/", 000)
Well, the immediate problem comes from the interpretation of the null
component at the end of the pathname, something that was never very well
nailed down in the old days. ("Nailed down" in this context means in the
documentation, not the code.) The quick fix is to remove the trailing
slash or add a '.' after it.
There is also a deeper problem in that RCS, like a good many other pieces
of code, probably should not be using access() at all, since it *probably*
wants to check against the effective uid/gid, not the real ones.
--
Allegedly heard aboard Mir: "A | Henry Spencer at U of Toronto Zoology
toast to comrade Van Allen!!" | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list