X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdir.c;h=a5076b193fe13ff8f27f4199bdfc5ebd205a1294;hb=c372c7c23a298a940b8a0868396ef2ae0d824e4d;hp=b603cfd0705db14fe357aa5b4a5e728d3f9884a5;hpb=2eb19f526164a978c373a760deb30854d56b62ce;p=libguestfs.git diff --git a/daemon/dir.c b/daemon/dir.c index b603cfd..a5076b1 100644 --- a/daemon/dir.c +++ b/daemon/dir.c @@ -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; }