generic-poky/meta/recipes-extended/shadow/files
Julian Pidancet ab81049f37 Fix the --root option in shadow-native programs
The add_root_cmd_options.patch that we apply to shadow-native allow the
various programs from the shadow utility package to chroot() so they can
be used to modify etc/passwd and etc/group if they are located in a
sysroot.

Some of the shadow programs (gpasswd, useradd and usermod) need to parse
the command line in two passes. But we can't use getopt_long() twice
because getopt_long() reorders the command line arguments, and
consequently corrupts the option parsing during the second pass.

This patch fixes this issue by replacing the first pass by a very simple
manual walk of the command line to handle the --root argument.

This change is a patch of another patch, I apologize if it is
difficult to read. But IMHO it wouldn't make sense to put the patch for
this issue in another separated file.

The --root options in groupadd and useradd are needed to make the
useradd class work, and this issue was preventing to use useradd and
groupadd long options while using the class.

(From OE-Core rev: 6e9e19b18597103d8fe09f258cfd9904bb5f1c27)

(From OE-Core rev: 533d99f28fab73503ed3ebaee63aaaeb23ad2a1c)

Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-30 16:37:59 +00:00
..
pam.d shadow: remove selinux entry from pam.d/login 2011-06-02 14:55:54 +01:00
add_root_cmd_options.patch Fix the --root option in shadow-native programs 2012-01-30 16:37:59 +00:00
login.defs_shadow-sysroot shadow-sysroot: new recipe for useradd.bbclass support 2011-06-28 13:55:40 +01:00
login_defs_pam.sed shadow: upgrade to 4.1.4.3 to fix security vulnerability 2011-03-01 07:27:31 -08:00
securetty shadow: upgrade to 4.1.4.3 to fix security vulnerability 2011-03-01 07:27:31 -08:00
shadow-4.1.3-dots-in-usernames.patch shadow: recipe and patch cleanup 2011-06-06 15:58:41 +01:00
shadow-4.1.4.2-env-reset-keep-locale.patch shadow: recipe and patch cleanup 2011-06-06 15:58:41 +01:00
shadow-4.1.4.2-groupmod-pam-check.patch shadow: recipe and patch cleanup 2011-06-06 15:58:41 +01:00
shadow-4.1.4.2-su_no_sanitize_env.patch shadow: recipe and patch cleanup 2011-06-06 15:58:41 +01:00
shadow-update-pam-conf.patch shadow: update pam related configure files 2011-07-27 12:02:42 +01:00
shadow.automake-1.11.patch shadow: recipe and patch cleanup 2011-06-06 15:58:41 +01:00
useradd.patch shadow: add patch for useradd lossage 2011-09-09 18:42:55 +01:00