OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5477417
)
sync iruserfopen() prototype with glibc and remove double setting of cp to NULL by...
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 29 Jan 2006 08:58:01 +0000
(08:58 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 29 Jan 2006 08:58:01 +0000
(08:58 -0000)
libc/inet/rpc/rcmd.c
patch
|
blob
|
history
diff --git
a/libc/inet/rpc/rcmd.c
b/libc/inet/rpc/rcmd.c
index
d88ace6
..
a479b89
100644
(file)
--- 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 (c
onst c
har *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))