X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fstat.c;h=4ff27113fd33ed613c69ca2f257a25c480cac0a0;hb=d5fad33b4eaa39722ea1dc96de9446ffc4805e01;hp=743dc6ee0770ae87dbbb494b79d65f4dfde71d66;hpb=212a55d483c2a20e61f42211c0c64aab3645cb09;p=libguestfs.git diff --git a/daemon/stat.c b/daemon/stat.c index 743dc6e..4ff2711 100644 --- a/daemon/stat.c +++ b/daemon/stat.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,9 +37,6 @@ do_stat (const char *path) guestfs_int_stat *ret; struct stat statbuf; - NEED_ROOT (NULL); - ABS_PATH (path, NULL); - CHROOT_IN; r = stat (path, &statbuf); CHROOT_OUT; @@ -79,9 +76,6 @@ do_lstat (const char *path) guestfs_int_stat *ret; struct stat statbuf; - NEED_ROOT (NULL); - ABS_PATH (path, NULL); - CHROOT_IN; r = lstat (path, &statbuf); CHROOT_OUT; @@ -121,9 +115,6 @@ do_statvfs (const char *path) guestfs_int_statvfs *ret; struct statvfs statbuf; - NEED_ROOT (NULL); - ABS_PATH (path, NULL); - CHROOT_IN; r = statvfs (path, &statbuf); CHROOT_OUT;