Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Merging r354402:
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
r354402 | eugenis | 2019-02-20 00:41:42 +0100 (Wed, 20 Feb 2019) | 3 lines

[msan] Fix name_to_handle_at test on overlayfs.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_80@354460 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
zmodem committed Feb 20, 2019
1 parent 3f14cf3 commit 5bc7979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/msan/Linux/name_to_handle_at.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5bc7979

Please sign in to comment.