X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ftar.c;h=26a0d302136cad8a3d896e8a13270ef3c2a77f53;hp=5b73599a2fbf511556269f44ec308f3b40715cc0;hb=5922d7084d6b43f0a1a15b664c7082dfeaf584d0;hpb=68467cb1c2f8b1cc7844ed6512b7f76ef2aba1d1 diff --git a/daemon/tar.c b/daemon/tar.c index 5b73599..26a0d30 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -42,12 +42,6 @@ do_tar_in (const char *dir) FILE *fp; char *cmd; - if (!root_mounted || dir[0] != '/') { - cancel_receive (); - reply_with_error ("root must be mounted and path must be absolute"); - return -1; - } - /* "tar -C /sysroot%s -xf -" but we have to quote the dir. */ if (asprintf_nowarn (&cmd, "tar -C %R -xf -", dir) == -1) { err = errno; @@ -165,12 +159,6 @@ do_tXz_in (const char *dir, char filter) FILE *fp; char *cmd; - if (!root_mounted || dir[0] != '/') { - cancel_receive (); - reply_with_error ("root must be mounted and path must be absolute"); - return -1; - } - /* "tar -C /sysroot%s -zxf -" but we have to quote the dir. */ if (asprintf_nowarn (&cmd, "tar -C %R -%cxf -", dir, filter) == -1) { err = errno;