Re: [PATCH] agetty: improve login(1) argv[]

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

 



On Thu, Aug 04, 2011 at 07:01:46PM +0200, Karel Zak wrote:
> * fix regression: missing username should not be reported (EPERM) if
>   -n/--skip-login is given and username is NULL.
> 
> * don't compose login options *string* if we can use argv *array* (the
>   string is necessary only for --login-options).
> 
> * don't overwrite --login-options by --autologin
> 
>   The old code silently ignores login-options and "login -f <username>"
>   is always used.
> 
>   The new code uses:
>     a)	"login -f <username>"    by default
>     b)	"login <login-options>"  for --login-options + --autologin
> 
>   where for b) the username from "--autologin <username>" is used to
>   replace \u magic string in <login-options>.
> 
> * the \u could be used more then once in one login argv string, for
>   example: agetty --login-options "-o user=\\u,name=\\u --foo"
> 
> * the space in --login-options is correctly ignored, for example
>   agetty --login-options " hello world ".

Please could you also apply the patches from Samuel

       agetty: Only enable F_UTF8 if kernel has already set IUTF8.
               Use C.UTF-8 locale instead of en_US.UTF-8
   Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux