[Pkg-shadow-commits] r2328 - in upstream/trunk: . src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun Aug 31 17:30:01 UTC 2008
Author: nekral-guest
Date: 2008-08-31 17:30:00 +0000 (Sun, 31 Aug 2008)
New Revision: 2328
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/pwconv.c
upstream/trunk/src/pwunconv.c
Log:
* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
provided.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-08-31 17:29:51 UTC (rev 2327)
+++ upstream/trunk/ChangeLog 2008-08-31 17:30:00 UTC (rev 2328)
@@ -1,5 +1,10 @@
2008-08-29 Nicolas François <nicolas.francois at centraliens.net>
+ * src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
+ provided.
+
+2008-08-29 Nicolas François <nicolas.francois at centraliens.net>
+
* src/passwd.c: Add brackets and parenthesis.
* src/passwd.c: Avoid implicit conversion of pointers to booleans.
* src/passwd.c: Avoid assignments in comparisons.
Modified: upstream/trunk/src/pwconv.c
===================================================================
--- upstream/trunk/src/pwconv.c 2008-08-31 17:29:51 UTC (rev 2327)
+++ upstream/trunk/src/pwconv.c 2008-08-31 17:30:00 UTC (rev 2328)
@@ -118,6 +118,9 @@
const struct spwd *sp;
struct spwd spent;
+ if (1 != argc) {
+ (void) fputs (_("Usage: pwconv\n"), stderr);
+ }
Prog = Basename (argv[0]);
(void) setlocale (LC_ALL, "");
Modified: upstream/trunk/src/pwunconv.c
===================================================================
--- upstream/trunk/src/pwunconv.c 2008-08-31 17:29:51 UTC (rev 2327)
+++ upstream/trunk/src/pwunconv.c 2008-08-31 17:30:00 UTC (rev 2328)
@@ -80,6 +80,9 @@
struct passwd pwent;
const struct spwd *spwd;
+ if (1 != argc) {
+ (void) fputs (_("Usage: pwunconv\n"), stderr);
+ }
Prog = Basename (argv[0]);
(void) setlocale (LC_ALL, "");
More information about the Pkg-shadow-commits
mailing list