Error if unsupported flag is passed to fstatat()

This commit is contained in:
John Scipione 2012-03-05 20:23:43 -05:00
parent 8c7f0a8967
commit b51d823d92

View File

@ -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] == '/') {