Print this page
10150 smbd needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/smbsrv/smbd/Makefile
          +++ new/usr/src/cmd/smbsrv/smbd/Makefile
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  #
  25   26  
  26   27  
  27   28  PROG=   smbd
  28   29  OBJS=                           \
  29   30          smbd_authsvc.o          \
  30   31          smbd_doorsvc.o          \
  31   32          smbd_join.o             \
  32   33          smbd_krb5lookup.o       \
  33   34          smbd_krb5ssp.o          \
↓ open down ↓ 28 lines elided ↑ open up ↑
  62   63  
  63   64  CFLAGS += $(CCVERBOSE)
  64   65  CPPFLAGS += -D_IPP_PRIVATE_STRUCTURES
  65   66  CPPFLAGS += -D_REENTRANT
  66   67  CPPFLAGS += -Dsyslog=smb_syslog
  67   68  $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  68   69  
  69   70  # Should not have to do this, but the Kerberos includes are a mess.
  70   71  CPPFLAGS += -I $(ROOT)/usr/include/kerberosv5
  71   72  
       73 +# needs work
       74 +SMOFF += all_func_returns,deref_check
       75 +
  72   76  CSTD =       $(CSTD_GNU99)
  73   77  C99LMODE =      -Xc99=%all
  74   78  
  75   79  LDFLAGS += -R/usr/lib/smbsrv
  76   80  LDLIBS += -L$(ROOT)/usr/lib/smbsrv
  77   81  # prefer to keep libs ordered by dependence
  78   82  LDLIBS += -lmlsvc -lmlrpc -lsmbns -lsmb -lsmbfs -lgss
  79   83  LDLIBS += -lzfs -lbsm -lscf -lcmdutils -lsocket -lnsl -lumem
  80   84  $(PROG) := LDLIBS += -lkrb5
  81   85  
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX