int64_t rv;
char *out, *err;
const char *argv[] = {
- "/sbin/blockdev",
+ "blockdev",
switc,
NULL,
NULL,
if (sscanf (out, "%" SCNi64, &rv) != 1) {
reply_with_error ("%s: expected output, but got nothing", argv[0]);
free (out);
+ free (err);
return -1;
}
}
free (out);
+ free (err);
return rv;
}