From b6cdd0fd9a2e1cd2dc78d94edc17b405b6ca23b9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 26 May 2000 07:32:26 +0000 Subject: [PATCH] (bfd_close_all_done): Mask file perms with 0777 not 0x777. --- bfd/ChangeLog | 6 +++++- bfd/opncls.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 52e4190211..9b51a5f5d2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2000-05-26 Alan Modra + + * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777. + 2000-05-26 Jakub Jelinek * elf64-sparc.c (sparc64_elf_relax_section): New. @@ -214,7 +218,7 @@ Fri May 5 16:51:03 2000 Clinton Popetz 2000-05-02 H.J. Lu - * elf.c (prep_headers): USe ELFOSABI_NONE instead of + * elf.c (prep_headers): Use ELFOSABI_NONE instead of ELFOSABI_SYSV. 2000-05-02 Alan Modra diff --git a/bfd/opncls.c b/bfd/opncls.c index 8f10135d26..57ca0d0a25 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -486,7 +486,7 @@ bfd_close_all_done (abfd) int mask = umask (0); umask (mask); chmod (abfd->filename, - (0x777 + (0777 & (buf.st_mode | ((S_IXUSR | S_IXGRP | S_IXOTH) &~ mask)))); } }