Print this page
12721 would like svcadm disable -c

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/svccfg/svccfg_libscf.c
          +++ new/usr/src/cmd/svc/svccfg/svccfg_libscf.c
↓ 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  /*
  23   23   * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright 2019 Joyent, Inc.
       24 + * Copyright 2020 Joyent, Inc.
  25   25   * Copyright 2012 Milan Jurik. All rights reserved.
  26   26   * Copyright 2017 RackTop Systems.
  27   27   * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  28   28   */
  29   29  
  30   30  
  31   31  #include <alloca.h>
  32   32  #include <assert.h>
  33   33  #include <ctype.h>
  34   34  #include <door.h>
↓ open down ↓ 10480 lines elided ↑ open up ↑
10515 10515                  scfdie();
10516 10516  
10517 10517          (void) memset(&pgelts, 0, sizeof (pgelts));
10518 10518  
10519 10519          while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
10520 10520                  if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
10521 10521                          scfdie();
10522 10522  
10523 10523                  if (strcmp(exp_str, scf_property_enabled) == 0) {
10524 10524                          continue;
     10525 +                } else if (strcmp(exp_str, SCF_PROPERTY_COMMENT) == 0) {
     10526 +                        continue;
10525 10527                  } else if (strcmp(exp_str, SCF_PROPERTY_RESTARTER) == 0) {
10526 10528                          xmlNodePtr rnode, sfnode;
10527 10529  
10528 10530                          rnode = xmlNewNode(NULL, (xmlChar *)"restarter");
10529 10531                          if (rnode == NULL)
10530 10532                                  uu_die(emsg_create_xml);
10531 10533  
10532 10534                          sfnode = xmlNewChild(rnode, NULL,
10533 10535                              (xmlChar *)"service_fmri", NULL);
10534 10536                          if (sfnode == NULL)
↓ open down ↓ 7100 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX