* src/newusers.c: Prefer #ifdef over #if.
This commit is contained in:
parent
1f8e2dcda2
commit
ee792a8fa1
@ -1,3 +1,7 @@
|
|||||||
|
2009-09-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/newusers.c: Prefer #ifdef over #if.
|
||||||
|
|
||||||
2009-09-08 Nicolas François <nicolas.francois@centraliens.net>
|
2009-09-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* configure.in: We do not use SETPGRP_VOID, and already assume
|
* configure.in: We do not use SETPGRP_VOID, and already assume
|
||||||
|
@ -966,7 +966,7 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
newpw = *pw;
|
newpw = *pw;
|
||||||
|
|
||||||
#if USE_PAM
|
#ifdef USE_PAM
|
||||||
/* keep the list of user/password for later update by PAM */
|
/* keep the list of user/password for later update by PAM */
|
||||||
nusers++;
|
nusers++;
|
||||||
lines = realloc (lines, sizeof (lines[0]) * nusers);
|
lines = realloc (lines, sizeof (lines[0]) * nusers);
|
||||||
@ -975,7 +975,7 @@ int main (int argc, char **argv)
|
|||||||
lines[nusers-1] = line;
|
lines[nusers-1] = line;
|
||||||
usernames[nusers-1] = strdup (fields[0]);
|
usernames[nusers-1] = strdup (fields[0]);
|
||||||
passwords[nusers-1] = strdup (fields[1]);
|
passwords[nusers-1] = strdup (fields[1]);
|
||||||
#endif
|
#endif /* USE_PAM */
|
||||||
if (add_passwd (&newpw, fields[1])) {
|
if (add_passwd (&newpw, fields[1])) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: line %d: can't update password\n"),
|
_("%s: line %d: can't update password\n"),
|
||||||
|
Loading…
Reference in New Issue
Block a user