mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user