aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2024-01-08 14:59:35 -0500
committerMike Gilbert <floppym@gentoo.org>2024-01-08 15:04:09 -0500
commitef9208bea4e0f0dff5abf358002565f36e4d7a8d (patch)
tree1659b3aac87b4f0d87f4cd80c4e4befd3c061889 /libsandbox/wrapper-funcs/truncate64.c
parentsrc: fix -Wold-style-declaration (diff)
downloadsandbox-ef9208bea4e0f0dff5abf358002565f36e4d7a8d.tar.gz
sandbox-ef9208bea4e0f0dff5abf358002565f36e4d7a8d.tar.bz2
sandbox-ef9208bea4e0f0dff5abf358002565f36e4d7a8d.zip
libsandbox: stat the original path for EEXIST hackaround
Resolves an issue that can occur with paths that contain parent directory references (/../). If part of the path does not exist, the sandboxed program should get ENOENT, not EEXIST. If we use the canonicalized path, intermediate paths will be eliminated and we produce the wrong result. Bug: https://bugs.gentoo.org/921581 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs/truncate64.c')
0 files changed, 0 insertions, 0 deletions