X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffsck.c;h=7a36440f748c3349f4256d0fb9473f743368bda6;hb=63c1d5dd6efb9b59a73a11f31aefdc55eaf28384;hp=825f97e053ce8257e84088b5dd445b173e6758ed;hpb=0c07f0d23698798475e0d09491812aca52440328;p=libguestfs.git diff --git a/daemon/fsck.c b/daemon/fsck.c index 825f97e..7a36440 100644 --- a/daemon/fsck.c +++ b/daemon/fsck.c @@ -27,17 +27,18 @@ #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; } + free (err); return r; }