Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-06-16 17:27:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-06-16 17:27:08 +0400
commit1f4923ae7393c92740c01248b0b5a538624f9f7d (patch)
tree5c46d195ee41a470986115bcc5145e251cc3813d
parentd510072c834371e39bcf61e0d6e9128562eb8a34 (diff)
* passwd.c (main): Fix typo in error output.
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/passwd.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index c37d5d016..b01600fb8 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-16 Corinna Vinschen <corinna@vinschen.de>
+
+ * passwd.c (main): Fix typo in error output.
+
2014-04-21 Jon TURNEY <jon.turney@dronecode.org.uk>
* minidumper.cc (filter_minidump_type): New function.
diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c
index ea3e2d159..991935a2a 100644
--- a/winsup/utils/passwd.c
+++ b/winsup/utils/passwd.c
@@ -537,7 +537,8 @@ main (int argc, char **argv)
if (!strcmp (username, getlogin ()))
username = NULL;
else if (!caller_is_admin ())
- return eprint (0, "You may not change the password for %s.", user);
+ return eprint (0, "You may not change the password for %s.",
+ username);
if (optind < argc)
usage (stderr, 1);