This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix preprocessor conditional


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ecef18c564bd609aa7640564747b807bfe1632c6

commit ecef18c564bd609aa7640564747b807bfe1632c6
Author: Gary Benson <gbenson@redhat.com>
Date:   Tue Jun 9 10:02:25 2015 +0100

    Fix preprocessor conditional
    
    This commit fixes a typo in common/fileio.c where S_IWGRP was
    misspelled as S_IWRGRP in a preprocessor conditional, causing
    Host-I/O "vFile:fstat:" and File-I/O "Fstat" and "Ffstat"
    responses to always indicate files were not group-writable
    regardless of their actual status.

Diff:
---
 gdb/ChangeLog       | 5 +++++
 gdb/common/fileio.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e7a574b..57c4cdf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-09  Gary Benson <gbenson@redhat.com>
+
+	* common/fileio.c (fileio_mode_pack): Fix preprocessor
+	conditional.
+
 2015-06-05  Gary Benson <gbenson@redhat.com>
 
 	* gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
diff --git a/gdb/common/fileio.c b/gdb/common/fileio.c
index 28335ec..ef00ea8 100644
--- a/gdb/common/fileio.c
+++ b/gdb/common/fileio.c
@@ -132,7 +132,7 @@ fileio_mode_pack (mode_t mode)
   if (mode & S_IRGRP)
     tmode |= FILEIO_S_IRGRP;
 #endif
-#ifdef S_IWRGRP
+#ifdef S_IWGRP
   if (mode & S_IWGRP)
     tmode |= FILEIO_S_IWGRP;
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]