* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are

provided.
This commit is contained in:
nekral-guest 2008-08-31 17:30:00 +00:00
parent 6c5e97e745
commit c04189bfb6
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
provided.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/passwd.c: Add brackets and parenthesis.

View File

@ -118,6 +118,9 @@ int main (int argc, char **argv)
const struct spwd *sp;
struct spwd spent;
if (1 != argc) {
(void) fputs (_("Usage: pwconv\n"), stderr);
}
Prog = Basename (argv[0]);
(void) setlocale (LC_ALL, "");

View File

@ -80,6 +80,9 @@ int main (int argc, char **argv)
struct passwd pwent;
const struct spwd *spwd;
if (1 != argc) {
(void) fputs (_("Usage: pwunconv\n"), stderr);
}
Prog = Basename (argv[0]);
(void) setlocale (LC_ALL, "");