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
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);
}