+/* We fix the path to include the bindir and sbindir we were installed into */
+static void fix_path(void) {
+ char *path = getenv("PATH");
+ char *newpath;
+
+ if(!path)
+ error(0, "PATH is not set at all!");
+
+ if(*finkbindir)
+ /* We appear to be a finkized mac; include fink on the path in case the
+ * tools we need are there. */
+ byte_xasprintf(&newpath, "PATH=%s:%s:%s:%s",
+ path, bindir, sbindir, finkbindir);
+ else
+ byte_xasprintf(&newpath, "PATH=%s:%s:%s", path, bindir, sbindir);
+ putenv(newpath);
+ info("%s", newpath);
+}
+
+int main(int argc, char **argv) {
+ int n, background = 1, logsyslog = 0;