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