X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ffsck.c;h=e452adc0028f1b35f26aff455e89eba4d6021b7b;hp=825f97e053ce8257e84088b5dd445b173e6758ed;hb=91324e0a732fe592f2eecd5b541c731bf4f34b74;hpb=0c07f0d23698798475e0d09491812aca52440328 diff --git a/daemon/fsck.c b/daemon/fsck.c index 825f97e..e452adc 100644 --- a/daemon/fsck.c +++ b/daemon/fsck.c @@ -27,14 +27,14 @@ #include "actions.h" int -do_fsck (char *fstype, char *device) +do_fsck (const char *fstype, const char *device) { char *err; int r; - r = commandr (NULL, &err, "/sbin/fsck", "-a", "-t", fstype, device, NULL); + r = commandr (NULL, &err, "fsck", "-a", "-t", fstype, device, NULL); if (r == -1) { - reply_with_error ("fsck: %s: %s", device, err); + reply_with_error ("%s: %s", device, err); free (err); return -1; }