From patchwork Tue Jun 9 09:21:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 7082 Received: (qmail 72587 invoked by alias); 9 Jun 2015 09:21:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 72576 invoked by uid 89); 9 Jun 2015 09:21:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 09 Jun 2015 09:21:22 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 7CA1EC0147 for ; Tue, 9 Jun 2015 09:21:21 +0000 (UTC) Received: from blade.nx (ovpn-116-112.ams2.redhat.com [10.36.116.112]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t599LKAU032088 for ; Tue, 9 Jun 2015 05:21:21 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id CA8F22626FB for ; Tue, 9 Jun 2015 10:21:19 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH] Fix preprocessor conditional Date: Tue, 9 Jun 2015 10:21:19 +0100 Message-Id: <1433841679-12499-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes Hi all, 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. Pushed as obvious. Thanks, Gary --- gdb/ChangeLog | 5 +++++ gdb/common/fileio.c | 2 +- 2 files changed, 6 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