You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Bob Hansen (JIRA)" <ji...@apache.org> on 2016/02/11 20:20:18 UTC

[jira] [Created] (HDFS-9792) libhdfs++: EACCES not setting errno correctly

Bob Hansen created HDFS-9792:
--------------------------------

             Summary: 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
            Reporter: Bob Hansen
            Assignee: Bob Hansen


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)