summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-05-26 07:38:31 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-05-26 07:38:31 +0000
commitf366878e53f47c5117c78baccfde9902271c6ef0 (patch)
tree5dbd8ee485266a8f44de7a785b7ac2536742741b
parenteb09642bf7268460a7aceee22f037609c7efe46a (diff)
downloadgdb-f366878e53f47c5117c78baccfde9902271c6ef0.tar.gz
(bfd_close_all_done): Mask file perms with 0777 not 0x777.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/opncls.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 53993bd4185..02a99480437 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-26 Alan Modra <alan@linuxcare.com.au>
+
+ * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
+
2000-05-23 Philip Blundell <pb@futuretv.com>
* configure.in: Set version to 2.10.
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 8f10135d267..57ca0d0a259 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))));
}
}