]> git.ipfire.org Git - thirdparty/shadow.git/commit
Create parent dirs for useradd -m 112/head
authorMichael Vetter <jubalh@iodoru.org>
Tue, 15 May 2018 15:25:52 +0000 (17:25 +0200)
committerMichael Vetter <jubalh@iodoru.org>
Tue, 15 May 2018 15:30:34 +0000 (17:30 +0200)
commitb3b6d9d77c1d18b98670b97157777bb74092cd69
tree143a87e01258a567cc31b2987c9f66026c714289
parent48dcf7852e51b9d8e7926737cc7f7823978b7d7d
Create parent dirs for useradd -m

Equivalent of `mkdir -p`. It will create all parent directories.
Example: `useradd -d /home2/testu1 -m testu1`

Based on https://github.com/shadow-maint/shadow/pull/2 by Thorsten Kukuk
and Thorsten Behrens which was Code from pwdutils 3.2.2 with slight adaptations.

Adapted to so it applies to current code.
src/useradd.c