#define CHROOTDIR

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Locked
bradi
Posts: 1
Joined: Tue May 10, 2016 8:45 am

#define CHROOTDIR

Post by bradi » Tue May 10, 2016 8:54 am

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?

Syzop
UnrealIRCd head coder
Posts: 1957
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: #define CHROOTDIR

Post by Syzop » Thu May 12, 2016 8:36 pm

Hmmm. Sounds like CHROOTDIR support is broken in 4.x. Could you create a bug report at https://bugs.unrealircd.org/ ?

Locked