diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-07 20:07:03 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-10 10:48:38 +0200 |
commit | 894d7c6733373bb333a4e148cf17c0aab97b8f96 (patch) | |
tree | 1ee116725d50ac4bb914e01cb0915c0b03ed4fe2 /daemon/file.c | |
parent | c8419d45c8ca6d0592a5a47399988908fd550d3f (diff) | |
download | libguestfs-894d7c6733373bb333a4e148cf17c0aab97b8f96.tar.gz libguestfs-894d7c6733373bb333a4e148cf17c0aab97b8f96.tar.xz libguestfs-894d7c6733373bb333a4e148cf17c0aab97b8f96.zip |
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.
Diffstat (limited to 'daemon/file.c')
-rw-r--r-- | daemon/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/daemon/file.c b/daemon/file.c index 63d8dd2d..cd477e5e 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; |