summaryrefslogtreecommitdiffstats
path: root/daemon/file.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 23:13:31 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commit302c18e7d095755ab1bcd0b79fd8952e2450ac7a (patch)
tree809ffe6e3d4515b6d187eb84490356bd8129b53a /daemon/file.c
parent0dd6c8c8442d4ff588f6dac2efab24d3409b0dec (diff)
downloadlibguestfs-302c18e7d095755ab1bcd0b79fd8952e2450ac7a.tar.gz
libguestfs-302c18e7d095755ab1bcd0b79fd8952e2450ac7a.tar.xz
libguestfs-302c18e7d095755ab1bcd0b79fd8952e2450ac7a.zip
manually adjust ABS_PATH uses for new semantics
* daemon/file.c (do_cat): fix an ABS_PATH use
Diffstat (limited to 'daemon/file.c')
-rw-r--r--daemon/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/file.c b/daemon/file.c
index e1851329..9cc324fb 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);