This can happen if the filename is weird anf tar has encoded it.
In this case we're going to do a full sweep of the tree anyway,
so there's no need to worry.
chmod(0755, "$tempdir/workdir/$file") ||
die "chmod: $!";
}
- utime(0, 0, "$tempdir/workdir/$file") || die "utime: $!";
+
+ if (-e "$tempdir/workdir/$file") {
+ utime(0, 0, "$tempdir/workdir/$file") || die "utime: $file: $!";
+ }
}
# If some files couldn't be matched up with the manifest,
chmod(0755, $_) ||
die "chmod: $!";
}
- utime(0, 0, $_) || die "utime: $!";
+ utime(0, 0, $_) || die "utime: $_: $!";
}, "$tempdir/workdir");
}