Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA19B108B8 for ; Sat, 22 Feb 2014 15:54:25 +0000 (UTC) Received: (qmail 60869 invoked by uid 500); 22 Feb 2014 15:54:20 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 60577 invoked by uid 500); 22 Feb 2014 15:54:19 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 60552 invoked by uid 99); 22 Feb 2014 15:54:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2014 15:54:19 +0000 Date: Sat, 22 Feb 2014 15:54:19 +0000 (UTC) From: =?utf-8?Q?Ren=C3=A9_Nyffenegger_=28JIRA=29?= To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10356) Corrections in winutils/chmod.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10356?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ren=C3=A9 Nyffenegger updated HADOOP-10356: -------------------------------------- Status: Patch Available (was: Open) > Corrections in winutils/chmod.c > ------------------------------- > > Key: HADOOP-10356 > URL: https://issues.apache.org/jira/browse/HADOOP-10356 > Project: Hadoop Common > Issue Type: Bug > Components: bin > Environment: Windows > Reporter: Ren=C3=A9 Nyffenegger > Priority: Trivial > Attachments: HADOOP-10356.patch > > > There are two small things in winutils/chmod.c: > pathName should be pointer to a constant WSTR > the declartion > LPWSTR pathName =3D NULL; > seems to be wrong. > LPCWSTR pathName =3D NULL; > should b used instead. > ------------------------------------------------ > I believe the fragment > switch (c) > { > case NULL: > to be wrong as pointers are not permitted as > case values. > ------------------------------------------------ -- This message was sent by Atlassian JIRA (v6.1.5#6160)