-pristine-tar (0.19) unstable; urgency=low
+pristine-tar (0.19) UNRELEASED; urgency=low
+ [ Josh Triplett ]
* Add a .gitignore file
* Various cleanups to zgz.
* Remove the unnecessary -l, -S, -t, and -v flags from zgz.
stored in the gzip file, rather than taking the timestamp of the input
file. Closes: #507110
+ [ Joey Hess ]
+ * zgz: Avoid using uninitialized data as timestamp in -c mode.
+ Closes: #507095
+
-- Josh Triplett <josh@freedesktop.org> Thu, 27 Nov 2008 19:54:29 -0800
pristine-tar (0.18) unstable; urgency=low
maybe_warn("can't open %s", file);
return -1;
}
+
+ if (fstat(in, &isb) != 0) {
+ maybe_warn("can't fstat %s", file);
+ return -1;
+ }
if (cflag == 0) {
- if (fstat(in, &isb) == 0) {
- if (isb.st_nlink > 1 && fflag == 0) {
- maybe_warnx("%s has %lu other link%s -- "
- "skipping", file,
- (unsigned long)(isb.st_nlink - 1),
- isb.st_nlink == 1 ? "" : "s");
- close(in);
- return -1;
- }
+ if (isb.st_nlink > 1 && fflag == 0) {
+ maybe_warnx("%s has %lu other link%s -- "
+ "skipping", file,
+ (unsigned long)(isb.st_nlink - 1),
+ isb.st_nlink == 1 ? "" : "s");
+ close(in);
+ return -1;
}
if (fflag == 0 && (suff = check_suffix(file, 0))