Update to latest ncmlib and remove some dead preprocessor defines.

This commit is contained in:
Nicholas J. Kain 2014-03-31 16:06:41 -04:00
parent 2f54ff75f3
commit dc2ac46fd4
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ OBJ_DIR = $(BUILD_DIR)/objs
CC = gcc
AR = ar
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

View File

@ -471,10 +471,12 @@ int main(int argc, char **argv)
cs.clientAddr = inet_addr(optarg);
break;
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;
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;
case 'C':
copy_cmdarg(chroot_dir, optarg, sizeof chroot_dir, "chroot");