X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Finitrd.c;h=9431ef1ff5864c021477d02bd286e348442a97b8;hp=e7034817df7a291ad66867238aa5dbeffdb03007;hb=2b891ceef355ce2d6532d65f8febbe3833d4399e;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;ds=sidebyside diff --git a/daemon/initrd.c b/daemon/initrd.c index e703481..9431ef1 100644 --- a/daemon/initrd.c +++ b/daemon/initrd.c @@ -28,7 +28,7 @@ #include "actions.h" char ** -do_initrd_list (char *path) +do_initrd_list (const char *path) { FILE *fp; char *cmd; @@ -37,9 +37,6 @@ do_initrd_list (char *path) int size = 0, alloc = 0; size_t len; - NEED_ROOT (NULL); - ABS_PATH (path, return NULL); - /* "zcat /sysroot/ | cpio --quiet -it", but path must be quoted. */ if (asprintf_nowarn (&cmd, "zcat %R | cpio --quiet -it", path) == -1) { reply_with_perror ("asprintf");