]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- %useradd: -k works only if -m is set
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 15 Oct 2005 17:50:09 +0000 (17:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.245

rpm.macros

index d8de6240e779f45a5de46af5f8c27463f7bc9351..01af2ca041a966ed00f0ec2b06e68405b620bf0d 100644 (file)
@@ -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 \
This page took 0.17809 seconds and 4 git commands to generate.