posix: it should be possible to use timestamp functions on O_RDONLY file or file with any mode set
szychows opened this issue · comments
In POSIX it is possible to use timestamp functions (futimes, futimens) to change timestamps of a file descriptor opened with O_RDONLY flag.
In libpmemfile-posix using pmemfile_futimes/futimens on PMEMfile* opened with PMEMFILE_O_RDONLY flag will return -1 with BADF errno.
Also it is possible to set timestamp on file where it's file mode is set to 000.
Found on commit d518fa1