hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Hansen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9792) libhdfs++: EACCES not setting errno correctly
Date Thu, 11 Feb 2016 19:32:18 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Hansen updated HDFS-9792:
-----------------------------
    Status: Patch Available  (was: Open)

> libhdfs++: EACCES not setting errno correctly
> ---------------------------------------------
>
>                 Key: HDFS-9792
>                 URL: https://issues.apache.org/jira/browse/HDFS-9792
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: Bob Hansen
>            Assignee: Bob Hansen
>         Attachments: HDFS-9792.HDFS-8707.000.patch
>
>
> When libhdfs++ gets a permissions error, it is failing to initialize errnum.
> Due to changes passing in the night, the code in hdfs.cc that reads
> {code}
>     case Status::Code::kPermissionDenied:
>       if (!stat.ToString().empty())
>         ReportError(EACCES, stat.ToString().c_str());
>       else
>         ReportError(EACCES, "Permission denied");
>       break;
> {code}
> should read
> {code}
>     case Status::Code::kPermissionDenied:
>       errnum = EACCES;
>       default_message = "Permission denied";
>       break;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message