projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fce73c
)
add a workaround to rstrip restoring exec perms when they got changed by sstrip
author
Nicolas Thill
<nico@openwrt.org>
Tue, 21 Apr 2009 01:10:21 +0000
(
01:10
+0000)
committer
Nicolas Thill
<nico@openwrt.org>
Tue, 21 Apr 2009 01:10:21 +0000
(
01:10
+0000)
SVN-Revision: 15312
scripts/rstrip.sh
patch
|
blob
|
history
diff --git
a/scripts/rstrip.sh
b/scripts/rstrip.sh
index 5efc866524b8dd63dcc23a50f92383c29f1c8ed6..e42caa53a296f5e4245d5228711f93831141600f 100755
(executable)
--- a/
scripts/rstrip.sh
+++ b/
scripts/rstrip.sh
@@
-48,7
+48,10
@@
find $TARGETS -type f -a -exec file {} \; | \
[ "${S}" = "relocatable" ] && {
eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F"
} || {
+ b=$(stat -c '%a' $F)
eval "$STRIP $F"
+ a=$(stat -c '%a' $F)
+ [ "$a" = "$b" ] || chmod $b $F
}
done
true