diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-23 03:25:25 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-23 18:18:03 -0400 |
commit | afa38c053de48152beef9d8bf6726a4710bcba58 (patch) | |
tree | 2ba66da9cba76c6e035c9b972e5c1c629f8f7967 /tests/utimensat64-1.sh | |
parent | libsandbox: fix flags extraction for a few syscalls (diff) | |
download | sandbox-afa38c053de48152beef9d8bf6726a4710bcba58.tar.gz sandbox-afa38c053de48152beef9d8bf6726a4710bcba58.tar.bz2 sandbox-afa38c053de48152beef9d8bf6726a4710bcba58.zip |
libsandbox: add 64-bit time_t wrappers
This intercepts the C library 64-bit time_t interfaces. The syscall
trace side will need more work first.
Bug: https://bugs.gentoo.org/751241
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/utimensat64-1.sh')
-rwxr-xr-x | tests/utimensat64-1.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/utimensat64-1.sh b/tests/utimensat64-1.sh new file mode 100755 index 0000000..2aebc5f --- /dev/null +++ b/tests/utimensat64-1.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# basic functionality check + +addwrite $PWD + +touch -r / file || exit 1 +utimensat64-0 0 AT_FDCWD . NULL 0 || exit 1 +utimensat64-0 0 AT_FDCWD file NULL 0 || exit 1 +[ file -nt / ] |