From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28390 invoked by alias); 16 Mar 2013 04:23:00 -0000 Received: (qmail 28275 invoked by uid 22791); 16 Mar 2013 04:22:58 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Mar 2013 04:22:49 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UGids-0004LF-Du from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 15 Mar 2013 21:22:48 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Mar 2013 21:22:48 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Fri, 15 Mar 2013 21:22:47 -0700 From: Yao Qi To: Subject: [PATCH 3/3] Don't use unportable macros Date: Sat, 16 Mar 2013 04:23:00 -0000 Message-ID: <1363407692-18959-4-git-send-email-yao@codesourcery.com> In-Reply-To: <1363407692-18959-1-git-send-email-yao@codesourcery.com> References: <83ip4s4ixc.fsf@gnu.org> <1363407692-18959-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-03/txt/msg00698.txt.bz2 gdb: 2013-03-16 Yao Qi * ctf.c (ctf_start): Don't use unportable macros. --- gdb/ctf.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/gdb/ctf.c b/gdb/ctf.c index a93dfaf..f66e857 100644 --- a/gdb/ctf.c +++ b/gdb/ctf.c @@ -306,8 +306,7 @@ ctf_start (struct trace_file_writer *self, const char *dirname) int i; /* Create DIRNAME. */ - if (mkdir (dirname, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) - && errno != EEXIST) + if (mkdir (dirname, S_IRUSR | S_IWUSR | S_IXUSR) && errno != EEXIST) error (_("Unable to open directory '%s' for saving trace data (%s)"), dirname, safe_strerror (errno)); -- 1.7.7.6