1 # strip (and objcopy) fail to set the error code if there is no
2 # output file name and the rename of the stripped (or copied) file
3 # fails, yet the command fails to do anything. This fixes both
6 # modification by bero: Ported to 2.16.91.0.6
8 #Signed-off-by: John Bowler <jbowler@acm.org>
9 #Signed-off-by: Bernhard Rosenkraenzer <bero@arklinux.org>
10 --- binutils-2.16.91.0.6/binutils/objcopy.c.ark 2006-03-11 15:59:07.000000000 +0100
11 +++ binutils-2.16.91.0.6/binutils/objcopy.c 2006-03-11 15:59:45.000000000 +0100
14 set_times (tmpname, &statbuf);
15 if (output_file == NULL)
16 - smart_rename (tmpname, argv[i], preserve_dates);
17 + if(smart_rename (tmpname, argv[i], preserve_dates))
25 set_times (tmpname, &statbuf);
26 - smart_rename (tmpname, input_filename, preserve_dates);
27 + if (smart_rename (tmpname, input_filename, preserve_dates))