From: Richard W.M. Jones Date: Thu, 8 Dec 2011 11:15:18 +0000 (+0000) Subject: daemon: Allow utimens to work for directories (RHBZ#761451). X-Git-Tag: 1.14.7~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=289645e80aebef0378ce69db5b0e847e8d6a28c6;hp=289645e80aebef0378ce69db5b0e847e8d6a28c6;p=libguestfs.git 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. (cherry picked from commit 31fba8d8033216f8a288e75fe3f575b73b9ef925) ---