Commit 5aff2d89 authored by Mike Hibler's avatar Mike Hibler

But make sure we are performing an update before we go willy-nilly removing .sha1s.

parent aae99cec
......@@ -277,7 +277,7 @@ sub doimage($)
if (! -r "$path") {
print STDERR "$pidimage: path: image path '$path' cannot be read\n";
# if root and cannot read it, it doesn't exist so get rid of .sha1 file too
if ($UID == 0) {
if ($UID == 0 && ($update || $fixit)) {
removehashfile($path);
}
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment