projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c25ba9
)
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
author
Eric Andersen
<andersen@codepoet.org>
Thu, 26 Jun 2003 08:53:49 +0000
(08:53 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Thu, 26 Jun 2003 08:53:49 +0000
(08:53 -0000)
Change fopen to bb_xfopen
libpwdgrp/shadow.c
patch
|
blob
|
history
diff --git
a/libpwdgrp/shadow.c
b/libpwdgrp/shadow.c
index
f3d6242
..
3a9c4b8
100644
(file)
--- a/
libpwdgrp/shadow.c
+++ b/
libpwdgrp/shadow.c
@@
-54,8
+54,7
@@
void setspent(void)
if (shadow) {
rewind(shadow);
} else {
- if ((shadow = fopen("/etc/shadow", "r")) == NULL)
- bb_perror_msg_and_die("/etc/shadow");
+ shadow == bb_xfopen(SHADOW_FILE, "r");
}
}