Like other "at" syscalls fd can have the special value AT_FDCWD which is an "invalid file descriptor". The LTP futimesat01 testcase shows: ==695142== Warning: invalid file descriptor -100 in syscall futimesat() futimesat01 5 TFAIL : futimesat01.c:85: futimesat() failed: TEST_ERRNO=EBADF(9): Bad file descriptor There is no LTP testcase for it, but if pathname is absolute, then fd is ignored.
Created attachment 183803 [details] proposed patch
Created attachment 183805 [details] proposed patch
Created attachment 183808 [details] proposed patch
(In reply to mcermak from comment #3) > Created attachment 183808 [details] > proposed patch Looks good. Pushed as: commit bdbce5686e4204d678814fa861d153c5bc5252f8 Author: Martin Cermak <mcermak@redhat.com> Date: Tue Aug 5 16:54:54 2025 +0200 The futimesat syscall wrapper doesn't handle AT_FDCWD Update futimesat syscall wrapper so that it doesn't consider the special value AT_FDCWD (-100) an invalid file descriptor. https://bugs.kde.org/show_bug.cgi?id=507868