From b5a7d552666889854dc4b9ff3bae9f40b24a0c28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 15 Oct 2005 17:50:09 +0000 Subject: [PATCH] - %useradd: -k works only if -m is set Changed files: rpm.macros -> 1.245 --- rpm.macros | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpm.macros b/rpm.macros index d8de624..01af2ca 100644 --- a/rpm.macros +++ b/rpm.macros @@ -644,14 +644,13 @@ if [ -n "`/bin/id -u %{expand:%{%{#}}} 2>/dev/null`" ]; then \ else \ echo "Adding user %{expand:%{%{#}}} UID=%{-u*}." \ /usr/sbin/useradd \\\ - -k %{-k*}%{!-k:/usr/share/empty} \\\ + %{-m:-m -k %{-k*}%{!-k:/usr/share/empty}} \\\ -u %{-u*} \\\ -r \\\ -d %{-d*}%{!-d:/usr/share/empty} \\\ -s %{-s*}%{!-s:/bin/false} \\\ %{-c:-c "%(set -- %{-c*} %{*}; echo $1)"}\\\ -g %{-g*} \\\ - %{-m} \\\ %{-M} \\\ %{-G:-G %{-G*}} \\\ %{expand:%{%{#}}} 1>&2 \ -- 2.44.0