Error if unsupported flag is passed to fstatat()
This commit is contained in:
@@ -285,6 +285,9 @@ fstatat(int fd, const char *path, struct stat *st, int flag)
|
|||||||
// CURRENTLY UNSUPPORTED
|
// CURRENTLY UNSUPPORTED
|
||||||
errno = ENOTSUP;
|
errno = ENOTSUP;
|
||||||
return -1;
|
return -1;
|
||||||
|
} else if (flag != 0) {
|
||||||
|
errno = EINVAL;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path != NULL && path[0] == '/') {
|
if (path != NULL && path[0] == '/') {
|
||||||
|
|||||||
Reference in New Issue
Block a user