Hello community, here is the log from the commit of package shadow for openSUSE:Factory checked in at 2020-10-15 13:43:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/shadow (Old) and /work/SRC/openSUSE:Factory/.shadow.new.3486 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "shadow" Thu Oct 15 13:43:47 2020 rev:40 rq:840431 version:4.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/shadow/shadow.changes 2020-09-23 18:39:21.181263452 +0200 +++ /work/SRC/openSUSE:Factory/.shadow.new.3486/shadow.changes 2020-10-15 13:43:50.525139908 +0200 @@ -1,0 +2,11 @@ +Fri Oct 9 13:12:11 UTC 2020 - Dr. Werner Fink <wer...@suse.de> + +- Add support for /usr/etc/skel to useradd.local script (boo#1173321) + +------------------------------------------------------------------- +Thu Oct 8 03:16:58 UTC 2020 - Stanislav Brabec <sbra...@suse.com> + +- shadow-login_defs-check.sh: Fix the regexp to get a real variable + list (boo#1164274). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ shadow-login_defs-check.sh ++++++ --- /var/tmp/diff_new_pack.aN7AB0/_old 2020-10-15 13:43:51.561140312 +0200 +++ /var/tmp/diff_new_pack.aN7AB0/_new 2020-10-15 13:43:51.565140314 +0200 @@ -54,7 +54,7 @@ echo "Extracting variables from pam..." cd openSUSE:Factory/pam/BUILD/* grep -rh LOGIN_DEFS . | - sed -n 's/^.*search_key *("\([A-Z0-9_]*\)", *LOGIN_DEFS).*$/\1/p' | + sed -n 's/^.*search_key *([A-Za-z_]*, *[A-Z_]*LOGIN_DEFS, *"\([A-Z0-9_]*\)").*$/\1/p' | LC_ALL=C sort -u >../../../../shadow-login_defs-check-pam.lst cd ../../../.. ++++++ useradd.local ++++++ --- /var/tmp/diff_new_pack.aN7AB0/_old 2020-10-15 13:43:51.625140338 +0200 +++ /var/tmp/diff_new_pack.aN7AB0/_new 2020-10-15 13:43:51.625140338 +0200 @@ -21,6 +21,19 @@ exit 1 fi +# definition of "root" $HOME for users +. /etc/default/useradd + +USER=$1 +GID=$(id -g $USER) +HOMEDIR=$HOME/$USER + +if [ $# -lt 4 ]; then + HOMEDIR=$HOME/$USER +else + HOMEDIR=$4 +fi + # Update NIS database # make -C /var/yp @@ -29,16 +42,23 @@ if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled ; then test -x /sbin/restorecon || exit 2 - if [ $# -lt 4 ]; then - home_dir=/home/$1 - else - home_dir=$4 - fi - - if [ -d $home_dir ]; then - /sbin/restorecon -R $home_dir + if [ -d $HOMEDIR ]; then + /sbin/restorecon -R $HOMEDIR fi fi +# +# Copy also skeleton files from /usr/etc/skel (boo#1173321) +# + +USRSKELDIR=/usr/etc/skel +for file in $(ls -A $USRSKELDIR); do + # Only copy if not exist yet, i.e. does *not* exist in /etc/skel, which is still + # being preferred ... + test -e $HOMEDIR/$file && continue + cp -a $USRSKELDIR/$file $HOMEDIR + chown -R $USER.$GID $HOMEDIR/$file +done + # All done. exit 0