diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2019-12-17 17:25:52 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2019-12-17 17:25:52 +0000 |
commit | a6b1b9be41af19f95f0ce41756cb0f50e10ec4a1 (patch) | |
tree | d6fee93732c28fa2901246ebefc0c400950cf2d1 /gnu/usr.bin/binutils | |
parent | 7c5615bbb5aa195cc362e91bc775696624773eda (diff) |
not renaming those temp files should be fatal
this got fixed in recent binutils, but it's GPLv3.
So do the same thing in a slightly different way
okay guenther@
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r-- | gnu/usr.bin/binutils/binutils/objcopy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/binutils/objcopy.c b/gnu/usr.bin/binutils/binutils/objcopy.c index c3404f773a2..6a161cee240 100644 --- a/gnu/usr.bin/binutils/binutils/objcopy.c +++ b/gnu/usr.bin/binutils/binutils/objcopy.c @@ -2389,7 +2389,11 @@ strip_main (int argc, char *argv[]) if (preserve_dates) set_times (tmpname, &statbuf); if (output_file == NULL) - smart_rename (tmpname, argv[i], preserve_dates); + { + int ret = smart_rename (tmpname, argv[i], preserve_dates); + if (ret != 0) + hold_status = ret; + } status = hold_status; } else |