Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>
@@ -18,10 +18,11 @@
#
# CDDL HEADER END
#
#
# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013 RackTop Systems.
#
# cmd/oamuser/user/Makefile
#
include ../../Makefile.cmd
@@ -40,21 +41,21 @@
# Removing sysadm: deleted $(SYSADMPROG) from this target.
#
PROG= $(SBINPROG)
PRODUCT= $(PROG)
-ADD_OBJ= useradd.o uid.o homedir.o \
- groups.o call_pass.o userdefs.o messages.o \
- val_lgrp.o funcs.o val_lprj.o proj.o
+ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
+ userdefs.o messages.o val_lgrp.o funcs.o \
+ val_lprj.o proj.o
DEL_OBJ= userdel.o call_pass.o rmfiles.o isbusy.o \
groups.o messages.o funcs.o proj.o
-MOD_OBJ= usermod.o uid.o movedir.o groups.o \
- rmfiles.o call_pass.o isbusy.o homedir.o \
- userdefs.o messages.o val_lgrp.o funcs.o \
- val_lprj.o proj.o
+MOD_OBJ= usermod.o movedir.o groups.o rmfiles.o \
+ call_pass.o isbusy.o homedir.o userdefs.o \
+ messages.o val_lgrp.o funcs.o val_lprj.o \
+ proj.o
OBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
SRCS= $(OBJECTS:.o=.c)
@@ -69,20 +70,18 @@
INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
INSSKELFILE= $(SKELFILE:%=$(ROOTSKEL)/%)
CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
-CERRWARN += -_gcc=-Wno-type-limits
-CERRWARN += -_gcc=-Wno-uninitialized
-CERRWARN += -_gcc=-Wno-parentheses
$(INSSBINPROG) := FILEMODE = 0555
$(INSSYSADMPROG):= FILEMODE = 0500
$(INSSKELFILE) := FILEMODE = 0644
$(USERADD) := OBJS = $(ADD_OBJ)
$(USERADD) := LIBS = $(LIBUSRGRP)
+$(USERADD) := LDLIBS += -lcmdutils
$(USERDEL) := OBJS = $(DEL_OBJ)
$(USERDEL) := LIBS = $(LIBUSRGRP)
$(USERMOD) := OBJS = $(MOD_OBJ)