daemon: Use gnulib futimens module.
[libguestfs.git] / daemon / dir.c
index b603cfd..a5076b1 100644 (file)
@@ -56,7 +56,7 @@ do_rm_rf (const char *path)
   int r;
   char *buf, *err;
 
-  if (strcmp (path, "/") == 0) {
+  if (STREQ (path, "/")) {
     reply_with_error ("rm -rf: cannot remove root directory");
     return -1;
   }