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:
Jim Meyering
2009-08-07 20:07:03 +02:00
parent c8419d45c8
commit 894d7c6733

View File

@@ -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;