Update to latest ncmlib and remove some dead preprocessor defines.
This commit is contained in:
parent
2f54ff75f3
commit
dc2ac46fd4
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ OBJ_DIR = $(BUILD_DIR)/objs
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
AR = ar
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CFLAGS = -O2 -s -std=gnu99 -pedantic -Wall -D_GNU_SOURCE -DHAVE_CLEARENV -DLINUX
|
CFLAGS = -O2 -s -std=gnu99 -pedantic -Wall -D_GNU_SOURCE
|
||||||
|
|
||||||
all: makedir ifchd-parse.o ncmlib.a ndhc
|
all: makedir ifchd-parse.o ncmlib.a ndhc
|
||||||
|
|
||||||
|
@ -471,10 +471,12 @@ int main(int argc, char **argv)
|
|||||||
cs.clientAddr = inet_addr(optarg);
|
cs.clientAddr = inet_addr(optarg);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
ndhc_uid = nk_uidgidbyname(optarg, &ndhc_gid);
|
if (nk_uidgidbyname(optarg, &ndhc_uid, &ndhc_gid))
|
||||||
|
suicide("invalid ndhc user '%s' specified", optarg);
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
ifch_uid = nk_uidgidbyname(optarg, &ifch_gid);
|
if (nk_uidgidbyname(optarg, &ifch_uid, &ifch_gid))
|
||||||
|
suicide("invalid ifch user '%s' specified", optarg);
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'C':
|
||||||
copy_cmdarg(chroot_dir, optarg, sizeof chroot_dir, "chroot");
|
copy_cmdarg(chroot_dir, optarg, sizeof chroot_dir, "chroot");
|
||||||
|
Loading…
Reference in New Issue
Block a user