← Commit list

fd10c7052

Eric Andersen
Eric Andersen
2003-06-26
FAILED Duration: 99s

Subject

Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow". Change fopen to bb_xfopen

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libpwdgrp/shadow.c+1 -2
@@ -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");
}
}