summaryrefslogtreecommitdiff
path: root/rpmpopt
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-12-30 19:25:51 +0000
committerewt <devnull@localhost>1997-12-30 19:25:51 +0000
commit7b53d1ce60fd347aaafe5c1849e28bacd1ef4260 (patch)
tree3129f3b7f0a40dbe406d5c3b2eba5f3f6aa618c5 /rpmpopt
parent9122ac746ca4c1393d484f688c889e478eef2c42 (diff)
downloadlibrpm-tizen-7b53d1ce60fd347aaafe5c1849e28bacd1ef4260.tar.gz
librpm-tizen-7b53d1ce60fd347aaafe5c1849e28bacd1ef4260.tar.bz2
librpm-tizen-7b53d1ce60fd347aaafe5c1849e28bacd1ef4260.zip
made --setperms not follow symlinks
CVS patchset: 1908 CVS date: 1997/12/30 19:25:51
Diffstat (limited to 'rpmpopt')
-rw-r--r--rpmpopt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmpopt b/rpmpopt
index 213876c0c..011e1d4a0 100644
--- a/rpmpopt
+++ b/rpmpopt
@@ -20,8 +20,8 @@ rpm alias --scripts --qf '\
%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
'
-rpm alias --setperms -q --qf '[%7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
- --pipe "grep -v \(none\) | sed 's/^.../chmod /' | sh"
+rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
+ --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
rpm alias --setugids -q --qf \
'[chown %{FILEUSERNAME:shescape}:%{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \