summaryrefslogtreecommitdiff
path: root/libpwdgrp
diff options
context:
space:
mode:
authorEric Andersen2003-06-26 08:53:49 +0000
committerEric Andersen2003-06-26 08:53:49 +0000
commitfd10c70521203bfbb5d87a2e66048ffab1f13c4c (patch)
tree599e2dda3e33c79ff25e858802ebe071e28ed974 /libpwdgrp
parent1c25ba9de1db1e30a549fb9ad3f5df508ee9cfb1 (diff)
downloadbusybox-fd10c70521203bfbb5d87a2e66048ffab1f13c4c.zip
busybox-fd10c70521203bfbb5d87a2e66048ffab1f13c4c.tar.gz
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/shadow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c
index f3d6242..3a9c4b8 100644
--- 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");
}
}