bug-sysutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-sysutils] argp patch for chsh


From: Marco Gerards
Subject: Re: [Bug-sysutils] argp patch for chsh
Date: Fri, 04 Jun 2004 20:27:36 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Barry deFreese <address@hidden> writes:

> Whoops, I was missing my .cvsrc on that last one.  Here is a diff -u
> copy.. Sorry.

Great!  Keep up the good work. :)

>       /* If we have no options, enter interactive mode */
> -     if (optind == 1) {
> +     if (argc == 1) {
>               fprintf(stdout,
>                       _("Changing the login shell for `%s'\n"
>                         "Enter the new value, or press enter to keep "

I don't fully understand the code, but in this case interactive mode
(right?)  is not used when I run `chsh marco'.  How about using this:

if (args->shell == NULL)
....

--
Marco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]