X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fstat.c;h=da2d2740761fda1b1214dc4af036a0c446db452c;hp=da360ce83ff6e643497a38363701b3fcdb748e44;hb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;hpb=4a5e13f15734aa7363e605f716ad6e29c67475c5 diff --git a/daemon/stat.c b/daemon/stat.c index da360ce..da2d274 100644 --- a/daemon/stat.c +++ b/daemon/stat.c @@ -38,7 +38,7 @@ do_stat (char *path) struct stat statbuf; NEED_ROOT (NULL); - ABS_PATH (path, NULL); + ABS_PATH (path, return NULL); CHROOT_IN; r = stat (path, &statbuf); @@ -80,7 +80,7 @@ do_lstat (char *path) struct stat statbuf; NEED_ROOT (NULL); - ABS_PATH (path, NULL); + ABS_PATH (path, return NULL); CHROOT_IN; r = lstat (path, &statbuf); @@ -122,7 +122,7 @@ do_statvfs (char *path) struct statvfs statbuf; NEED_ROOT (NULL); - ABS_PATH (path, NULL); + ABS_PATH (path, return NULL); CHROOT_IN; r = statvfs (path, &statbuf);