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 | |
| parent | 1c25ba9de1db1e30a549fb9ad3f5df508ee9cfb1 (diff) | |
| download | busybox-w32-fd10c70521203bfbb5d87a2e66048ffab1f13c4c.tar.gz busybox-w32-fd10c70521203bfbb5d87a2e66048ffab1f13c4c.tar.bz2 busybox-w32-fd10c70521203bfbb5d87a2e66048ffab1f13c4c.zip | |
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen
| -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) | |||
| 54 | if (shadow) { | 54 | if (shadow) { |
| 55 | rewind(shadow); | 55 | rewind(shadow); |
| 56 | } else { | 56 | } else { |
| 57 | if ((shadow = fopen("/etc/shadow", "r")) == NULL) | 57 | shadow == bb_xfopen(SHADOW_FILE, "r"); |
| 58 | bb_perror_msg_and_die("/etc/shadow"); | ||
| 59 | } | 58 | } |
| 60 | } | 59 | } |
| 61 | 60 | ||
