X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=e16e8c919a404c4cfe079146cec298c8c37aed66;hp=a504141d91c8a2dc3a658ada7d0beacab2169d4e;hb=0c07f0d23698798475e0d09491812aca52440328;hpb=8601bbda56cdb2b8491b6e2054596ec9599c38f1 diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index a504141..e16e8c9 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -38,8 +38,6 @@ sfdisk (char *device, int n, int cyls, int heads, int sectors, char buf[256]; int i; - RESOLVE_DEVICE (device, return -1); - strcpy (buf, "/sbin/sfdisk"); if (n > 0) @@ -111,8 +109,6 @@ sfdisk_flag (char *device, const char *flag) char *out, *err; int r; - RESOLVE_DEVICE (device, return NULL); - r = command (&out, &err, "/sbin/sfdisk", flag, device, NULL); if (r == -1) { reply_with_error ("sfdisk: %s: %s", device, err);