X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Frealpath.c;h=706af427c5af175d3d49bb9a9e82660ac1bb9219;hb=62b322872543c2ec069ac4fb0103ab758f587cef;hp=9ab478d2f3582798361addc6fe7fc7e54dda5005;hpb=7c3a90f94cd6b8fec9cdd1c052b91a14c0ee0e0e;p=libguestfs.git diff --git a/daemon/realpath.c b/daemon/realpath.c index 9ab478d..706af42 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -28,13 +28,10 @@ #include "actions.h" char * -do_realpath (char *path) +do_realpath (const char *path) { char *ret; - NEED_ROOT (NULL); - ABS_PATH (path, NULL); - CHROOT_IN; ret = realpath (path, NULL); CHROOT_OUT;