New APIs: lvm-set-filter and lvm-clear-filter.
[libguestfs.git] / daemon / scrub.c
index 08c6d47..573385f 100644 (file)
@@ -31,8 +31,7 @@
 int
 optgroup_scrub_available (void)
 {
-  int r = access ("/usr/bin/scrub", X_OK);
-  return r == 0;
+  return prog_exists ("scrub");
 }
 
 int