diff options
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index d58e12e..63d5a15 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1731,7 +1731,7 @@ copy_file (const char *input_filename, const char *output_filename, if (delete) { - unlink (output_filename); + unlink_if_ordinary (output_filename); status = 1; } } @@ -2438,7 +2438,7 @@ strip_main (int argc, char *argv[]) status = hold_status; } else - unlink (tmpname); + unlink_if_ordinary (tmpname); if (output_file == NULL) free (tmpname); } |