]> code.ossystems Code Review - openembedded-core.git/commit
shadow-native: fix creation of home directories
authorScott Garman <scott.a.garman@intel.com>
Tue, 28 Jun 2011 22:15:39 +0000 (15:15 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Jun 2011 19:56:18 +0000 (20:56 +0100)
commit7d4099a964ec79b1ac4cf5348cf9f4221c3d4908
tree725e103d62ecbb749a87e762b0d927ddb2d78404
parentfd383ab8e0a8cc8098f557ffcb097190a495c45e
shadow-native: fix creation of home directories

Pseudo was recently changed so that when system() calls are
made after a chroot(), the host binaries can no longer be found,
breaking the system("mkdir -p") approach when useradd creates
home directories.

Instead, use mkdir(2) to create home directories with a helper
function to ensure parent directories get created.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
meta/recipes-extended/shadow/files/add_root_cmd_options.patch