Page 1 of 1

#define CHROOTDIR

Posted: Tue May 10, 2016 8:54 am
by bradi
Hi, I am trying to run the ircd as the user "ircd". I have edited config.h

Code: Select all

#define CHROOTDIR
#define IRC_USER  "ircd"
#define IRC_GROUP "ircd"
but "make" fails with

Code: Select all

ircd.c: In function ‘main’:
ircd.c:1068:66: error: ‘dpath’ undeclared (first use in this function)
   fprintf(stderr, "ERROR: Unable to change to directory '%s'\n", dpath);
                                                                  ^
ircd.c:1068:66: note: each undeclared identifier is reported only once for each function it appears in
Makefile:146: recipe for target 'ircd.o' failed
make[1]: *** [ircd.o] Error 1
make[1]: Leaving directory '/usr/local/src/unrealircd-4.0.3.1/src'
Makefile:139: recipe for target 'build' failed
make: *** [build] Error 2
I am running Fedora 23 x64 with Unreal v4.0.3.1. What am I doing wrong?

Re: #define CHROOTDIR

Posted: Thu May 12, 2016 8:36 pm
by Syzop
Hmmm. Sounds like CHROOTDIR support is broken in 4.x. Could you create a bug report at https://bugs.unrealircd.org/ ?