commit - 87e823f249effd48cf55c950a1a24cbfa39267c0
commit + 3065f08c041aa183200511b6371a883e945f3187
blob - 80cd0545feee7ce87bd2fdf066a67b5a87c1e0d8
blob + 792b6cd2d9a880c6eda669664af5e7f61c4b8126
--- gotwebd/gotwebd.c
+++ gotwebd/gotwebd.c
static int
spawn_socket_process(struct gotwebd *env, const char *argv0, int n)
{
- const char *argv[6];
+ const char *argv[8];
int argc = 0;
int p[2];
pid_t pid;
argv[argc++] = argv0;
argv[argc++] = "-S";
+ if (strcmp(env->gotwebd_conffile, GOTWEBD_CONF) != 0) {
+ argv[argc++] = "-f";
+ argv[argc++] = env->gotwebd_conffile;
+ }
if (env->gotwebd_debug)
argv[argc++] = "-d";
if (env->gotwebd_verbose > 0)