[rootfiles/f20] fix the posttrans scriptlet to not change the /root permissions (#1037688)

Ondrej Vasik ovasik at fedoraproject.org
Wed Dec 4 10:10:52 UTC 2013


commit 50da1d20dbb6968864989744c899f59e14bc1f77
Author: Ondřej Vašík <ovasik at redhat.com>
Date:   Wed Dec 4 11:11:07 2013 +0100

    fix the posttrans scriptlet to not change the /root permissions (#1037688)

 rootfiles.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/rootfiles.spec b/rootfiles.spec
index db5460a..e7b7499 100644
--- a/rootfiles.spec
+++ b/rootfiles.spec
@@ -1,7 +1,7 @@
 Summary: The basic required files for the root user's directory
 Name: rootfiles
 Version: 8.1
-Release: 14%{?dist}
+Release: 15%{?dist}
 License: Public Domain
 Group: System Environment/Base
 
@@ -35,7 +35,7 @@ done
 %posttrans
 if [ $1 -eq 0 ] ; then
   #copy recursively the content, but do not overwrite the original files provided by rootfiles package
-  cp -ndpr /etc/skel/. /root/ || :
+  cp -ndpr --no-preserve=mode /etc/skel/. /root/ || :
 fi
 
 %files
@@ -43,6 +43,10 @@ fi
 %config(noreplace) /root/.[A-Za-z]*
 
 %changelog
+* Wed Dec 04 2013 Ondrej Vasik <ovasik at redhat.com> 0.1-15
+- fix the posttrans scriptlet to not change the /root
+  permissions (#1037688)
+
 * Fri Sep 20 2013 Ondrej Vasik <ovasik at redhat.com> 0.1-14
 - fix the posttrans copying (thanks O.Poplawski)
 


More information about the scm-commits mailing list