]> jfr.im git - solanum.git/blobdiff - ircd/authd.c
ircd: start staging for relocatable paths
[solanum.git] / ircd / authd.c
index 491d02379f048a4b329ed6467678818b3a7a7141..30dd30cbb23f1094043179ea20a6270c2e118325 100644 (file)
@@ -55,20 +55,20 @@ start_authd(void)
 #endif
        if(authd_path == NULL)
        {
-               snprintf(fullpath, sizeof(fullpath), "%s/authd%s", PKGLIBEXECDIR, suffix);
+               snprintf(fullpath, sizeof(fullpath), "%s%cauthd%s", ircd_paths[IRCD_PATH_LIBEXEC], RB_PATH_SEPARATOR, suffix);
 
                if(access(fullpath, X_OK) == -1)
                {
-                       snprintf(fullpath, sizeof(fullpath), "%s/libexec/charybdis/authd%s",
-                                ConfigFileEntry.dpath, suffix);
+                       snprintf(fullpath, sizeof(fullpath), "%s%cbin%cauthd%s",
+                                ConfigFileEntry.dpath, RB_PATH_SEPARATOR, RB_PATH_SEPARATOR, suffix);
                        if(access(fullpath, X_OK) == -1)
                        {
                                ilog(L_MAIN,
-                                    "Unable to execute authd in %s or %s/libexec/charybdis",
-                                    PKGLIBEXECDIR, ConfigFileEntry.dpath);
+                                    "Unable to execute authd in %s or %s/bin",
+                                    ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath);
                                sendto_realops_snomask(SNO_GENERAL, L_ALL,
-                                                      "Unable to execute authd in %s or %s/libexec/charybdis",
-                                                      PKGLIBEXECDIR, ConfigFileEntry.dpath);
+                                                      "Unable to execute authd in %s or %s/bin",
+                                                      ircd_paths[IRCD_PATH_LIBEXEC], ConfigFileEntry.dpath);
                                return 1;
                        }