0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd: only relocate_paths on windows, no point on posix

This commit is contained in:
William Pitcock 2016-03-25 18:13:15 -05:00
parent 42c5dd7e01
commit 0aaa37f721

View file

@ -396,6 +396,7 @@ initialize_server_capabs(void)
* output - none * output - none
* side effects - items in ircd_paths[] array are relocated * side effects - items in ircd_paths[] array are relocated
*/ */
#ifdef _WIN32
static void static void
relocate_paths(void) relocate_paths(void)
{ {
@ -466,6 +467,7 @@ relocate_paths(void)
ircd_paths[IRCD_PATH_BIN] = rb_strdup(workbuf); ircd_paths[IRCD_PATH_BIN] = rb_strdup(workbuf);
ircd_paths[IRCD_PATH_LIBEXEC] = rb_strdup(workbuf); ircd_paths[IRCD_PATH_LIBEXEC] = rb_strdup(workbuf);
} }
#endif
/* /*
* write_pidfile * write_pidfile
@ -656,7 +658,7 @@ charybdis_main(int argc, char *argv[])
} }
#endif #endif
#ifndef ENABLE_FHS_PATHS #ifdef _WIN32
relocate_paths(); relocate_paths();
#endif #endif