aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-28 16:01:33 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-28 16:01:33 -0400
commit4377a68df2a20cda06aadb58c179ce2e8d78f7cd (patch)
treee7645b4f4e950c9ee38186155975c755b8cbe190 /tests/utimensat.at
parenttests: add basic parsing of timespec fields (diff)
downloadsandbox-4377a68df2a20cda06aadb58c179ce2e8d78f7cd.tar.gz
sandbox-4377a68df2a20cda06aadb58c179ce2e8d78f7cd.tar.bz2
sandbox-4377a68df2a20cda06aadb58c179ce2e8d78f7cd.zip
libsandbox: do not unnecessarily dereference symlinks
When the target uses a func that operates on a symlink, we should not dereference that symlink when trying to validate the call. It's both a waste of time and it subtly breaks code that checks atime updates. The act of reading symlinks is enough to cause their atime to change. URL: https://bugs.gentoo.org/415475 Reported-by: Marien Zwart <marienz@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/utimensat.at')
-rw-r--r--tests/utimensat.at1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/utimensat.at b/tests/utimensat.at
index eec4638..1909650 100644
--- a/tests/utimensat.at
+++ b/tests/utimensat.at
@@ -1,3 +1,4 @@
SB_CHECK(1)
SB_CHECK(2)
SB_CHECK(3)
+SB_CHECK(4)