gnutouch opens the file for writing and closes it:
openat(AT_FDCWD, "README.md", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3
dup2(3, 0) = 0
close(3) = 0
utimensat(0, NULL, NULL, 0) = 0
close(0) = 0
This triggers `CLOSE_WRITE` inotify events which are monitored for by
0ad.
uutils touch only calls utimensat()
utimensat(AT_FDCWD, "README.md", [{tv_sec=1769357943, tv_nsec=925117368}
/* 2026-01-25T17:19:03.925117368+0100 */, {tv_sec=1769357943,
tv_nsec=925117368} /* 2026-01-25T17:19:03.925117368+0100 */], 0) = 0
This only triggers `ATTRIB` inotify events.
Also to note it passes times explicitly, and uses AT_FDCWD instead of
passing in the file fd, but those should be irrelevant.
** Bug watch added: github.com/uutils/coreutils/issues #9812
https://github.com/uutils/coreutils/issues/9812
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136917
Title:
inotify never detects file change with rust-coreutils in 0 A.D.
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2136917/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs