s/NEED_ROOT_OR_IS_DEVICE/REQUIRE_ROOT_OR_RESOLVE_DEVICE/
authorJim Meyering <meyering@redhat.com>
Mon, 10 Aug 2009 17:10:14 +0000 (19:10 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 13 Aug 2009 12:45:34 +0000 (14:45 +0200)
daemon/daemon.h
daemon/file.c
daemon/upload.c

index 8bc6344..cbcab63 100644 (file)
@@ -171,7 +171,7 @@ extern void reply (xdrproc_t xdrp, char *ret);
  * because we intend in future to make device parameters a distinct
  * type from filenames.
  */
  * because we intend in future to make device parameters a distinct
  * type from filenames.
  */
-#define NEED_ROOT_OR_IS_DEVICE(path,fail_stmt)                         \
+#define REQUIRE_ROOT_OR_RESOLVE_DEVICE(path,fail_stmt)                 \
   do {                                                                 \
     if (strncmp ((path), "/dev/", 5) == 0)                             \
       RESOLVE_DEVICE ((path), fail_stmt);                              \
   do {                                                                 \
     if (strncmp ((path), "/dev/", 5) == 0)                             \
       RESOLVE_DEVICE ((path), fail_stmt);                              \
index 9cc324f..2ba2aab 100644 (file)
@@ -391,7 +391,7 @@ do_file (char *path)
   char *buf;
   int len;
 
   char *buf;
   int len;
 
-  NEED_ROOT_OR_IS_DEVICE (path, return NULL);
+  REQUIRE_ROOT_OR_RESOLVE_DEVICE (path, return NULL);
 
   if (strncmp (path, "/dev/", 5) == 0)
     buf = (char *) path;
 
   if (strncmp (path, "/dev/", 5) == 0)
     buf = (char *) path;
index 7815e23..5c1adaf 100644 (file)
@@ -93,7 +93,7 @@ do_download (char *filename)
   int fd, r, is_dev;
   char buf[GUESTFS_MAX_CHUNK_SIZE];
 
   int fd, r, is_dev;
   char buf[GUESTFS_MAX_CHUNK_SIZE];
 
-  NEED_ROOT_OR_IS_DEVICE (filename, return -1);
+  REQUIRE_ROOT_OR_RESOLVE_DEVICE (filename, return -1);
 
   is_dev = strncmp (filename, "/dev/", 5) == 0;
 
 
   is_dev = strncmp (filename, "/dev/", 5) == 0;