[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



From: Jim Meyering <meyering 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]