* objcopy.c (copy_archive): Make the temporary directory in the
same directory as the output BFD, since we may not have write permission on the current directory. Set the permissions of the new directory to 0700, not 0777.
This commit is contained in:
parent
4f019d0445
commit
90f6517da9
@ -1,3 +1,10 @@
|
||||
Fri Jun 10 15:41:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||
|
||||
* objcopy.c (copy_archive): Make the temporary directory in the
|
||||
same directory as the output BFD, since we may not have write
|
||||
permission on the current directory. Set the permissions of the
|
||||
new directory to 0700, not 0777.
|
||||
|
||||
Mon Jun 6 21:36:43 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
|
||||
|
||||
* configure.in: if this is an rs6000 (and we're not building for
|
||||
|
||||
@ -358,10 +358,10 @@ copy_archive (ibfd, obfd, output_target)
|
||||
{
|
||||
bfd **ptr = &obfd->archive_head;
|
||||
bfd *this_element;
|
||||
char *dir = cat ("./#", make_tempname (""), "cd");
|
||||
char *dir = make_tempname (bfd_get_filename (obfd));
|
||||
|
||||
/* Make a temp directory to hold the contents. */
|
||||
mkdir (dir, 0777);
|
||||
mkdir (dir, 0700);
|
||||
obfd->has_armap = ibfd->has_armap;
|
||||
|
||||
this_element = bfd_openr_next_archived_file (ibfd, NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user