diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 08:58:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 08:58:01 +0000 |
commit | f96e8c2c8902d10d6a07ba9bb836e40c25271ad1 (patch) | |
tree | f5b7792050bfd848c26a59079501653001a50744 /libc | |
parent | 5477417e8160ba6186067026d99a2e3ed2cd149d (diff) |
sync iruserfopen() prototype with glibc and remove double setting of cp to NULL by Bernard Fischer
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/rpc/rcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index d88ace60e..a479b89ca 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -433,7 +433,7 @@ int ruserok(rhost, superuser, ruser, luser) /* Extremely paranoid file open function. */ static FILE * -iruserfopen (char *file, uid_t okuser) +iruserfopen (const char *file, uid_t okuser) { struct stat st; char *cp = NULL; @@ -442,7 +442,6 @@ iruserfopen (char *file, uid_t okuser) /* If not a regular file, if owned by someone other than user or root, if writeable by anyone but the owner, or if hardlinked anywhere, quit. */ - cp = NULL; if (lstat (file, &st)) cp = "lstat failed"; else if (!S_ISREG (st.st_mode)) |