git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check return value from readlink.
[libguestfs.git]
/
edit
/
run-edit-locally
diff --git
a/edit/run-edit-locally
b/edit/run-edit-locally
index
90968a2
..
3a6a9ab
100755
(executable)
--- a/
edit/run-edit-locally
+++ b/
edit/run-edit-locally
@@
-34,7
+34,7
@@
my $path = $0;
# Follow symlinks until we get to the real file
while(-l $path) {
- my $link = readlink($path);
+ my $link = readlink($path)
or die "readlink: $path: $!"
;
if(File::Spec->file_name_is_absolute($link)) {
$path = $link;
} else {