chiark / gitweb /
readahead: take file system root on command line
[elogind.git] / src / readahead-collect.c
index e93f4fe5270a3eb5e51506ae7d8d54204f24e9bd..937231ca4282d46355b01b738c51c6cbccf896ef 100644 (file)
@@ -437,11 +437,12 @@ finish:
 }
 
 int main(int argc, char *argv[]) {
+
         log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
         log_parse_environment();
         log_open();
 
-        if (collect("/") < 0)
+        if (collect(argc >= 2 ? argv[1] : "/") < 0)
                 return 1;
 
         return 0;