X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ffsck.c;h=71390949d075e8e72fbac7852d1b852aa3ee6fca;hp=907c117ee17f2bf04aecf5d528343e27a19ea3e0;hb=b3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47;hpb=1997858e90da728287ef26a6d01a5766ac914312 diff --git a/daemon/fsck.c b/daemon/fsck.c index 907c117..7139094 100644 --- a/daemon/fsck.c +++ b/daemon/fsck.c @@ -27,13 +27,11 @@ #include "actions.h" int -do_fsck (char *fstype, char *device) +do_fsck (const char *fstype, const char *device) { char *err; int r; - RESOLVE_DEVICE (device, return -1); - r = commandr (NULL, &err, "/sbin/fsck", "-a", "-t", fstype, device, NULL); if (r == -1) { reply_with_error ("fsck: %s: %s", device, err);