1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

o Add missing initialization of errno from error returns of

cap_get_fd(), cap_get_file() and cap_get_proc().

Submitted by:	jedgar
This commit is contained in:
Robert Watson 2001-01-09 05:40:10 +00:00
parent ca1460dd64
commit fe33e45a80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70838
6 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@ cap_get_fd(int fd)
error = __cap_get_fd(fd, cap);
if (error) {
errno = erro;
cap_free(cap);
return (NULL);
}

View File

@ -47,6 +47,7 @@ cap_get_file(const char *path_p)
error = __cap_get_file(path_p, cap);
if (error) {
errno = error;
cap_free(cap);
return (NULL);
}

View File

@ -47,6 +47,7 @@ cap_get_proc(void)
error = __cap_get_proc(cap);
if (error) {
errno = error;
cap_free(cap);
return (NULL);
}

View File

@ -47,6 +47,7 @@ cap_get_fd(int fd)
error = __cap_get_fd(fd, cap);
if (error) {
errno = erro;
cap_free(cap);
return (NULL);
}

View File

@ -47,6 +47,7 @@ cap_get_file(const char *path_p)
error = __cap_get_file(path_p, cap);
if (error) {
errno = error;
cap_free(cap);
return (NULL);
}

View File

@ -47,6 +47,7 @@ cap_get_proc(void)
error = __cap_get_proc(cap);
if (error) {
errno = error;
cap_free(cap);
return (NULL);
}