Print this page
8688 svcadm does not handle multiple partial FMRI arguments
Reviewed by: Dominik Hassler <hadfl@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libscf/common/error.c
          +++ new/usr/src/lib/libscf/common/error.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 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   * Copyright 2013 Joyent, Inc.  All rights reserved.
       26 + * Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
  26   27   */
  27   28  
  28   29  #include "libscf_impl.h"
  29   30  
  30   31  #include <assert.h>
  31   32  #include <dlfcn.h>
  32   33  #include <libintl.h>
  33   34  #include <pthread.h>
  34   35  #include <stdarg.h>
  35   36  #include <stdio.h>
↓ open down ↓ 156 lines elided ↑ open up ↑
 192  193  
 193  194          case SCF_MSG_PATTERN_POSSIBLE:
 194  195                  return (dgettext(TEXT_DOMAIN, "    %s\n"));
 195  196  
 196  197          case SCF_MSG_PATTERN_LEGACY:
 197  198                  return (dgettext(TEXT_DOMAIN,
 198  199                      "Operation not supported for legacy service '%s'\n"));
 199  200  
 200  201          case SCF_MSG_PATTERN_MULTIPARTIAL:
 201  202                  return (dgettext(TEXT_DOMAIN,
 202      -                    "Partial FMRI matches multiple instances\n"));
      203 +                    "Partial FMRI '%s' matches multiple instances\n"));
 203  204  
 204  205          default:
 205  206                  abort();
 206  207                  /* NOTREACHED */
 207  208          }
 208  209  
 209  210  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX