aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-06-09 10:02:25 +0100
committerGary Benson <gbenson@redhat.com>2015-06-09 10:12:11 +0100
commitecef18c564bd609aa7640564747b807bfe1632c6 (patch)
tree5b6a7405f358a4841bdd5e5379446b27a1e5d6a0 /gdb/common
parentf5316771bd0cf89578450be0460908beeef4dbb5 (diff)
downloadgdb-ecef18c564bd609aa7640564747b807bfe1632c6.zip
gdb-ecef18c564bd609aa7640564747b807bfe1632c6.tar.gz
gdb-ecef18c564bd609aa7640564747b807bfe1632c6.tar.bz2
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.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/fileio.c2
1 files changed, 1 insertions, 1 deletions
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