From: Jim Meyering Date: Fri, 7 Aug 2009 18:07:03 +0000 (+0200) Subject: daemon/file.c: remove duplicate absolute-path check X-Git-Tag: 1.0.67~56 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=894d7c6733373bb333a4e148cf17c0aab97b8f96;p=libguestfs.git daemon/file.c: remove duplicate absolute-path check * daemon/file.c (do_file): Remove redundant use of ABS_PATH. It's redundant because the preceding line invokes NEED_ROOT_OR_IS_DEVICE, which also invokes ABS_PATH. --- diff --git a/daemon/file.c b/daemon/file.c index 63d8dd2..cd477e5 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -392,7 +392,6 @@ do_file (char *path) int len; NEED_ROOT_OR_IS_DEVICE (path, NULL); - ABS_PATH (path, NULL); if (strncmp (path, "/dev/", 5) == 0) buf = (char *) path;