[msan] Fix name_to_handle_at test on overlayfs.

Udev supports name_to_handle_at. Use /dev/null instead of /bin/cat.

llvm-svn: 354402
This commit is contained in:
Evgeniy Stepanov 2019-02-19 23:41:42 +00:00
parent 322eb7660e
commit bdbbfdc8c2
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ int main(void) {
handle->handle_bytes = MAX_HANDLE_SZ;
int mount_id;
int res = name_to_handle_at(AT_FDCWD, "/bin/cat", handle, &mount_id, 0);
int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0);
assert(!res);
__msan_check_mem_is_initialized(&mount_id, sizeof(mount_id));
__msan_check_mem_is_initialized(&handle->handle_bytes,