public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Benno Schulenberg <benno.schulenberg@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] bug in usermod, full name of options doesn't work
Date: Sat, 13 Jan 2007 15:13:18 +0100	[thread overview]
Message-ID: <200701131513.18519.benno.schulenberg@gmail.com> (raw)
In-Reply-To: <yu9ac0ob0k9.fsf@nyu.edu>

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

Allan Gottlieb wrote:
> Goal: add gottlieb to group scanner.
>
> It seems that -aG works but --append --groups doesn't

Please try attached patch.

I'll report this bug upstream, mentioning that you found it.

Benno

[-- Attachment #2: shadow--usermod-noargument.patch --]
[-- Type: text/x-diff, Size: 488 bytes --]

diff -ur cvs-shadow/src/usermod.c shadow/src/usermod.c
--- cvs-shadow/src/usermod.c	2006-11-14 16:40:54.000000000 +0100
+++ shadow/src/usermod.c	2007-01-13 14:59:02.000000000 +0100
@@ -905,7 +905,7 @@
 		 */
 		int c;
 		static struct option long_options[] = {
-			{"append", required_argument, NULL, 'a'},
+			{"append", no_argument, NULL, 'a'},
 			{"comment", required_argument, NULL, 'c'},
 			{"home", required_argument, NULL, 'd'},
 			{"expiredate", required_argument, NULL, 'e'},

  parent reply	other threads:[~2007-01-13 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 17:46 [gentoo-user] bug in usermod, full name of options doesn't work Allan Gottlieb
2007-01-13  6:17 ` Bo Ørsted Andresen
2007-01-13 14:13 ` Benno Schulenberg [this message]
2007-01-13 15:18   ` Allan Gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701131513.18519.benno.schulenberg@gmail.com \
    --to=benno.schulenberg@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox