[Libguestfs] [PATCH libguestfs 07/23] manually adjust ABS_PATH uses for new semantics

Jim Meyering jim at meyering.net
Wed Aug 12 16:52:43 UTC 2009


From: Jim Meyering <meyering at redhat.com>

* daemon/file.c (do_cat): fix an ABS_PATH use
---
 daemon/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/file.c b/daemon/file.c
index e185132..9cc324f 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -74,7 +74,7 @@ do_cat (char *path)
   char *buf, *buf2;

   NEED_ROOT (NULL);
-  ABS_PATH (path,NULL);
+  ABS_PATH (path, return NULL);

   CHROOT_IN;
   fd = open (path, O_RDONLY);
-- 
1.6.4.337.g5420e




More information about the Libguestfs mailing list