diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-01-09 05:40:10 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-01-09 05:40:10 +0000 |
commit | 8b948144e8dbfd4a5d3033c61804c2e9d491b262 (patch) | |
tree | 28793ae0a4f19d023277b80f1248f48c7d26a8e6 /lib/libc/posix1e/cap_get_proc.c | |
parent | 8beebd80cc82f51063b89a127d30662fa39c7f03 (diff) | |
download | FreeBSD-src-8b948144e8dbfd4a5d3033c61804c2e9d491b262.zip FreeBSD-src-8b948144e8dbfd4a5d3033c61804c2e9d491b262.tar.gz |
o Add missing initialization of errno from error returns of
cap_get_fd(), cap_get_file() and cap_get_proc().
Submitted by: jedgar
Diffstat (limited to 'lib/libc/posix1e/cap_get_proc.c')
-rw-r--r-- | lib/libc/posix1e/cap_get_proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/posix1e/cap_get_proc.c b/lib/libc/posix1e/cap_get_proc.c index e5d0782..d2bf96b 100644 --- a/lib/libc/posix1e/cap_get_proc.c +++ b/lib/libc/posix1e/cap_get_proc.c @@ -47,6 +47,7 @@ cap_get_proc(void) error = __cap_get_proc(cap); if (error) { + errno = error; cap_free(cap); return (NULL); } |