Print this page
10685 SMB code needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dfs.cmds/sharemgr/commands.c
          +++ new/usr/src/cmd/dfs.cmds/sharemgr/commands.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   * Copyright 2012 Milan Jurik. All rights reserved.
       26 + * Copyright 2019, Joyent, Inc.
  26   27   */
  27   28  
  28   29  #include <sys/types.h>
  29   30  #include <sys/stat.h>
  30   31  #include <fcntl.h>
  31   32  #include <stdlib.h>
  32   33  #include <stdio.h>
  33   34  #include <string.h>
  34   35  #include <ctype.h>
  35   36  #include <unistd.h>
↓ open down ↓ 1727 lines elided ↑ open up ↑
1763 1764                          switch (optopt) {
1764 1765                          default:
1765 1766                                  ret = SA_SYNTAX_ERR;
1766 1767                                  break;
1767 1768                          case 'h':
1768 1769                          case '?':
1769 1770                                  break;
1770 1771                          }
1771 1772                          (void) printf(gettext("usage: %s\n"),
1772 1773                              sa_get_usage(USAGE_LIST));
1773      -                                return (ret);
     1774 +                        return (ret);
1774 1775                  }
1775 1776          }
1776 1777  
1777 1778          if (optind != argc) {
1778 1779                  (void) printf(gettext("usage: %s\n"),
1779 1780                      sa_get_usage(USAGE_LIST));
1780 1781                  return (SA_SYNTAX_ERR);
1781 1782          }
1782 1783  
1783 1784          for (group = sa_get_group(handle, NULL);
↓ open down ↓ 4233 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX