- Avoid setting _FORTIFY_SOURCE in configure script, it may conflict with flags passed in otherwise (e.g. rpmbuild). - Update to dd_rescue-1.99.14: * Drop patches dd_rescue-u-emptyout-segfault.diff:, dd_rescue-fuzz-test-more-err.diff:, dd_rescue-md5-unaligned-armv7.diff:, dd_rescue-ossl3-evpcipherctx.diff: All integrated upstream. * Fix detection of LFS function availability for musl. * Include headers and settings to make it work on musl. * Replaced basename() with mybasename.h. * Prefetch lookup table for sha hashing. * Fix verbose output when falling back to small blocksize. * Fix clearing of errno (unaligned writes at EOF on musl) - Final tarball with fixes for Android Makefiles. OBS-URL: https://build.opensuse.org/request/show/1195603 OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=80
22 lines
639 B
Diff
22 lines
639 B
Diff
commit 250bf8baf8d7a59d09a8ef48d966019972d3ee5a
|
|
Author: Kurt Garloff <kurt@garloff.de>
|
|
Date: Mon Aug 12 15:19:09 2024 +0200
|
|
|
|
Prevent segfault with -u and empty output filename.
|
|
|
|
Signed-off-by: Kurt Garloff <kurt@garloff.de>
|
|
|
|
diff --git a/dd_rescue.c b/dd_rescue.c
|
|
index 92f81d0..2d32084 100644
|
|
--- a/dd_rescue.c
|
|
+++ b/dd_rescue.c
|
|
@@ -1466,7 +1466,7 @@ int real_cleanup(opt_t *op, fstate_t *fst, progress_t *prg,
|
|
copyxattr(op->iname, op->oname);
|
|
copytimes(op->iname, op->oname);
|
|
}
|
|
- if (op->rmvtrim)
|
|
+ if (op->rmvtrim && op->oname)
|
|
remove_and_trim(op->oname, op);
|
|
LISTFOREACH(ofiles, of) {
|
|
if (op->preserve) {
|