X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fstat.c;h=e245323430321c1d008670faf5575598df11676b;hp=20f4b70ab50b018b4cd1b03c06252120fba4ec08;hb=16da7589e91b0030fb5564553447f80b97c0b18c;hpb=63516f39a0b1381ef3d06d9eb55141bf6c4466b0 diff --git a/daemon/stat.c b/daemon/stat.c index 20f4b70..e245323 100644 --- a/daemon/stat.c +++ b/daemon/stat.c @@ -26,7 +26,7 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -42,7 +42,7 @@ do_stat (const char *path) CHROOT_OUT; if (r == -1) { - reply_with_perror ("stat"); + reply_with_perror ("%s", path); return NULL; } @@ -89,7 +89,7 @@ do_lstat (const char *path) CHROOT_OUT; if (r == -1) { - reply_with_perror ("stat"); + reply_with_perror ("%s", path); return NULL; } @@ -151,7 +151,7 @@ do_lstatlist (const char *path, char *const *names) CHROOT_OUT; if (path_fd == -1) { - reply_with_perror ("lstatlist: %s", path); + reply_with_perror ("%s", path); free (ret->guestfs_int_stat_list_val); free (ret); return NULL;