From: root Date: Mon, 4 Nov 2019 21:13:06 +0000 (+0100) Subject: rpmsafe: realpath fixes X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=c36d3924d6aa4ea711f344e215e2f5b8525fd0a0 rpmsafe: realpath fixes --- diff --git a/bin/rpmsafe b/bin/rpmsafe index f8071da..6177dd2 100755 --- 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");'