X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fstat.c;h=da2d2740761fda1b1214dc4af036a0c446db452c;hb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;hp=6b12f4c388b66c024da03dd282a822ca0a88ab6f;hpb=56bef498f46ac3dd580f4bde3c8f3ed2fe688826;p=libguestfs.git diff --git a/daemon/stat.c b/daemon/stat.c index 6b12f4c..da2d274 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 @@ -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);