X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Futimens.c;h=a9857db7dae84c0e496ecc4fd73b86dd45a3e4fa;hb=31fba8d8033216f8a288e75fe3f575b73b9ef925;hp=e836b4e4b6497340cacac336bac7acc2c5f8b622;hpb=b3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47;p=libguestfs.git diff --git a/daemon/utimens.c b/daemon/utimens.c index e836b4e..a9857db 100644 --- a/daemon/utimens.c +++ b/daemon/utimens.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -24,7 +24,7 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -37,7 +37,7 @@ do_utimens (const char *path, int r; CHROOT_IN; - fd = open (path, O_WRONLY | O_NOCTTY); + fd = open (path, O_RDONLY | O_NOCTTY); CHROOT_OUT; if (fd == -1) {