daemon: Allow utimens to work for directories (RHBZ#761451).
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 8 Dec 2011 11:15:18 +0000 (11:15 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 8 Dec 2011 11:15:18 +0000 (11:15 +0000)
commit31fba8d8033216f8a288e75fe3f575b73b9ef925
tree8107555eda073a763afd5d233fad6203184c9491
parent98edfac1ee70bcf15ee7caebc306e11cdbbb0d9a
daemon: Allow utimens to work for directories (RHBZ#761451).

You don't need to open the file O_WRONLY in order to call futimens on
the file descriptor.  Opening it O_WRONLY fails for directories.
Therefore open O_RDONLY instead.
daemon/utimens.c