diff options
author | imp <imp@FreeBSD.org> | 1997-03-25 05:34:31 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-25 05:34:31 +0000 |
commit | f8040b7f543f2c249bf500a781110b4d4792b918 (patch) | |
tree | 57b1916d6ae2315901b0732be85ea98655df13de /lib | |
parent | f257ef4b889262260df5c6fdb43d84ad5166dcd7 (diff) | |
download | FreeBSD-src-f8040b7f543f2c249bf500a781110b4d4792b918.zip FreeBSD-src-f8040b7f543f2c249bf500a781110b4d4792b918.tar.gz |
Back out 1.14 until I reproduce trouble reports
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdtime/localtime.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 031e665..3438cc6 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -305,10 +305,8 @@ register struct state * const sp; doaccess = TRUE; name = fullname; } - /* XXX Should really be issetguid(), but we don't have that */ - if (doaccess && - (getuid() != geteuid() || getgid() != getegid()) ) - return -1; + if (doaccess && access(name, R_OK) != 0) + return -1; if ((fid = open(name, OPEN_MODE)) == -1) return -1; if ((fstat(fid, &stab) < 0) || !S_ISREG(stab.st_mode)) |