* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
provided.
This commit is contained in:
parent
6c5e97e745
commit
c04189bfb6
@ -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>
|
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/passwd.c: Add brackets and parenthesis.
|
* src/passwd.c: Add brackets and parenthesis.
|
||||||
|
@ -118,6 +118,9 @@ int main (int argc, char **argv)
|
|||||||
const struct spwd *sp;
|
const struct spwd *sp;
|
||||||
struct spwd spent;
|
struct spwd spent;
|
||||||
|
|
||||||
|
if (1 != argc) {
|
||||||
|
(void) fputs (_("Usage: pwconv\n"), stderr);
|
||||||
|
}
|
||||||
Prog = Basename (argv[0]);
|
Prog = Basename (argv[0]);
|
||||||
|
|
||||||
(void) setlocale (LC_ALL, "");
|
(void) setlocale (LC_ALL, "");
|
||||||
|
@ -80,6 +80,9 @@ int main (int argc, char **argv)
|
|||||||
struct passwd pwent;
|
struct passwd pwent;
|
||||||
const struct spwd *spwd;
|
const struct spwd *spwd;
|
||||||
|
|
||||||
|
if (1 != argc) {
|
||||||
|
(void) fputs (_("Usage: pwunconv\n"), stderr);
|
||||||
|
}
|
||||||
Prog = Basename (argv[0]);
|
Prog = Basename (argv[0]);
|
||||||
|
|
||||||
(void) setlocale (LC_ALL, "");
|
(void) setlocale (LC_ALL, "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user