mirror of https://github.com/digint/btrbk
btrbk: catch verbose errors from readlink
readlink -v enables "report error messages", printing useful errors like: readlink: /some/dir/: Permission denied readlink: /some/dir/: No such file or directorypull/299/head
parent
6e4aeae323
commit
360c8918bb
3
btrbk
3
btrbk
|
@ -1889,8 +1889,7 @@ sub system_realpath($)
|
|||
my $vol = shift // die;
|
||||
|
||||
my $path = $vol->{PATH} // die;;
|
||||
my @quiet = ($loglevel < 3) ? ('-q') : ();
|
||||
my $ret = run_cmd(cmd => vinfo_cmd($vol, "readlink", '-e', @quiet, { unsafe => $path } ),
|
||||
my $ret = run_cmd(cmd => vinfo_cmd($vol, "readlink", '-v', '-e', { unsafe => $path } ),
|
||||
rsh => vinfo_rsh($vol),
|
||||
non_destructive => 1,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue