daemon/file.c: remove duplicate absolute-path check
authorJim Meyering <meyering@redhat.com>
Fri, 7 Aug 2009 18:07:03 +0000 (20:07 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 10 Aug 2009 08:48:38 +0000 (10:48 +0200)
* 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.

daemon/file.c

index 63d8dd2..cd477e5 100644 (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;