diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-06-26 08:53:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-06-26 08:53:49 +0000 |
commit | fd10c70521203bfbb5d87a2e66048ffab1f13c4c (patch) | |
tree | 599e2dda3e33c79ff25e858802ebe071e28ed974 /libpwdgrp | |
parent | 1c25ba9de1db1e30a549fb9ad3f5df508ee9cfb1 (diff) | |
download | 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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c index f3d624213..3a9c4b8d4 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"); } } |