Description of problem: You can set times on ordinary files, as in this example: $ guestfish -N fs -m /dev/sda1 -- \ touch /foo : utimens /foo -1 -1 -1 -1 But the same call fails for a directory: $ guestfish -N fs -m /dev/sda1 -- \ mkdir /foo : utimens /foo -1 -1 -1 -1 libguestfs: error: utimens: open: /foo: Is a directory The reason is that the current implementation of do_utimens opens the path first, and the open fails with -EISDIR. Version-Release number of selected component (if applicable): 1.15.10 How reproducible: 100%
Fixed in commit 31fba8d8033216f8a288e75fe3f575b73b9ef925.