* a strip bug fix
@ 1995-05-06 9:23 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 1995-05-06 9:23 UTC (permalink / raw)
To: Ken Raeburn; +Cc: gas2
Sat May 6 08:52:24 1995 H.J. Lu (hjl@nynexst.com)
* objcopy.c (smart_rename): make it smarter, clean up
if rename () fails.
diff -c gnu/binutils/binutils/objcopy.c:1.1.1.5 gnu/binutils/binutils/objcopy.c:1.1.1.5.2.1
*** gnu/binutils/binutils/objcopy.c:1.1.1.5 Sat May 6 11:12:32 1995
--- gnu/binutils/binutils/objcopy.c Sat May 6 11:12:32 1995
***************
*** 1326,1331 ****
--- 1326,1340 ----
chmod (to, s.st_mode & 07777);
chown (to, s.st_uid, s.st_gid);
}
+ else
+ {
+ /* We have to clean up here. */
+ int saved = errno;
+ fprintf (stderr, "%s: `%s': ", program_name, to);
+ errno = saved;
+ perror ("rename");
+ unlink (from);
+ }
}
else
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-05-06 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-05-06 9:23 a strip bug fix H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).