diff options
author | dcashman <dcashman@google.com> | 2016-02-23 17:23:43 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-02-23 17:23:43 +0000 |
commit | 9e3acaea1b0e3770c1739337959553663d33e0a0 (patch) | |
tree | 056a2092c3610b4370290b7737a2beab9176b834 | |
parent | 0592072e53fe1b2ae92e4f0f3f83a937215a7cab (diff) | |
parent | 034c53e93a736f8b6f9aac90938ef65ffcaac9da (diff) | |
download | libselinux-9e3acaea1b0e3770c1739337959553663d33e0a0.tar.gz |
Correct errno value.
am: 034c53e93a
* commit '034c53e93a736f8b6f9aac90938ef65ffcaac9da':
Correct errno value.
-rw-r--r-- | src/procattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procattr.c b/src/procattr.c index e88e224..a55465a 100644 --- a/src/procattr.c +++ b/src/procattr.c @@ -34,7 +34,7 @@ static int openattr(pid_t pid, const char *attr, int flags) tid = gettid(); rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr); } else { - errno = -EINVAL; + errno = EINVAL; return -1; } if (rc < 0) |