aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-26 07:32:26 +0000
committerAlan Modra <amodra@gmail.com>2000-05-26 07:32:26 +0000
commitb6cdd0fd9a2e1cd2dc78d94edc17b405b6ca23b9 (patch)
tree12955dfa48b798a99ed77c645f33264d74c9de40 /bfd/opncls.c
parent6faf3d667f97618bc7ae638ee136eaa91effe30f (diff)
downloadgdb-b6cdd0fd9a2e1cd2dc78d94edc17b405b6ca23b9.zip
gdb-b6cdd0fd9a2e1cd2dc78d94edc17b405b6ca23b9.tar.gz
gdb-b6cdd0fd9a2e1cd2dc78d94edc17b405b6ca23b9.tar.bz2
(bfd_close_all_done): Mask file perms with 0777 not 0x777.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 8f10135..57ca0d0 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))));
}
}