X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fgrub.c;h=657abbba0cbedfab766994e1ab26f306be621199;hp=0a49c45dac1dedc8c056809fcff468e1401d1c9f;hb=d15195bad9e50f4d80e84c39100a217a260fc806;hpb=0c07f0d23698798475e0d09491812aca52440328 diff --git a/daemon/grub.c b/daemon/grub.c index 0a49c45..657abbb 100644 --- a/daemon/grub.c +++ b/daemon/grub.c @@ -26,15 +26,12 @@ #include "actions.h" int -do_grub_install (char *root, char *device) +do_grub_install (const char *root, const char *device) { int r; char *err; char *buf; - NEED_ROOT (-1); - ABS_PATH (root, return -1); - if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) { reply_with_perror ("asprintf"); return -1;