git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8adb382
)
rpmsafe: realpath fixes
author
root
<jan.kratochvil@redhat.com>
Mon, 4 Nov 2019 21:13:06 +0000
(22:13 +0100)
committer
root
<jan.kratochvil@redhat.com>
Mon, 4 Nov 2019 21:13:06 +0000
(22:13 +0100)
bin/rpmsafe
patch
|
blob
|
history
diff --git
a/bin/rpmsafe
b/bin/rpmsafe
index
f8071da
..
6177dd2
100755
(executable)
--- a/
bin/rpmsafe
+++ b/
bin/rpmsafe
@@
-1,2
+1,2
@@
#! /bin/bash
-rpm -Vva 2>/dev/null|perl -ne 'BEGIN{use Cwd qw(realpath);}chomp;
print realpath($_)."\n" if s/^[.]{7}[.T][.] [^g] //
;'
+rpm -Vva 2>/dev/null|perl -ne 'BEGIN{use Cwd qw(realpath);}chomp;
s/^[.]{7}[.T][.] [^g] // or next;s{/([^/]*)$}{} or die $_;$f=$1;print(($_ eq ""?"":realpath($_)||$_)."/$f\n")
;'