summaryrefslogtreecommitdiffstats
path: root/winsup/utils/passwd.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-23 20:40:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-03-23 20:40:17 +0000
commit6199f417abaf0cb1e90fb99c38e7f4672a84977e (patch)
tree426bfc6e530262013b275390614034e3487a631d /winsup/utils/passwd.c
parent4d5112e2b1418e00b3d66403552ab5f97e760841 (diff)
downloadcygnal-6199f417abaf0cb1e90fb99c38e7f4672a84977e.tar.gz
cygnal-6199f417abaf0cb1e90fb99c38e7f4672a84977e.tar.bz2
cygnal-6199f417abaf0cb1e90fb99c38e7f4672a84977e.zip
* passwd.c (usage): Change description for -d option according to
previous change. (main): Fix typo. * utils.sgml: Add missing description for passwd -d option.
Diffstat (limited to 'winsup/utils/passwd.c')
-rw-r--r--winsup/utils/passwd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c
index 3616848ab..3ea91a4e5 100644
--- a/winsup/utils/passwd.c
+++ b/winsup/utils/passwd.c
@@ -280,7 +280,9 @@ usage (FILE * stream, int status)
"\n"
"Other options:\n"
" -d, --logonserver SERVER connect to SERVER (e.g. domain controller).\n"
- " default server is the content of $LOGONSERVER.\n"
+ " Default server is the local system, unless\n"
+ " changing the current user, in which case the\n"
+ " default is the content of $LOGONSERVER.\n"
" -S, --status display password status for USER (locked, expired,\n"
" etc.) plus global system password settings.\n"
" -h, --help output usage information and exit.\n"
@@ -571,7 +573,7 @@ main (int argc, char **argv)
strcpy (user, optind >= argc ? getlogin () : argv[optind]);
/* Changing password for calling user? Use logonserver for user as well. */
- if (!server && optind < argc)
+ if (!server && optind >= argc)
{
myself = 1;
if ((logonserver = getenv ("LOGONSERVER")))