Print this page
4122 do_sysfile_cmd colon-separates the module path, and then we can't parse it

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/modsysfile.c
          +++ new/usr/src/uts/common/os/modsysfile.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   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  #include <sys/types.h>
  29   27  #include <sys/inttypes.h>
  30   28  #include <sys/param.h>
  31   29  #include <sys/systm.h>
  32   30  #include <sys/user.h>
  33   31  #include <sys/disp.h>
  34   32  #include <sys/conf.h>
  35   33  #include <sys/bootconf.h>
  36   34  #include <sys/sysconf.h>
  37   35  #include <sys/sunddi.h>
↓ open down ↓ 654 lines elided ↑ open up ↑
 692  690                          cp += strlen(cp);
 693  691                          while ((ch = kobj_getc(file)) != -1 && !iswhite(ch) &&
 694  692                              !isnewline(ch) && ch != ':') {
 695  693                                  if (cp - tok1 >= sizeof (tok1) - 1) {
 696  694                                          kobj_file_err(CE_WARN, file,
 697  695                                              oversize_err);
 698  696                                          goto bad;
 699  697                                  }
 700  698                                  *cp++ = (char)ch;
 701  699                          }
 702      -                        *cp++ = ':';
      700 +                        *cp++ = ' ';
 703  701                          if (isnewline(ch)) {
 704  702                                  cp--;
 705  703                                  (void) kobj_ungetc(file);
 706  704                          }
 707  705                  }
 708  706                  (void) kobj_ungetc(file);
 709  707                  *cp  = '\0';
 710  708                  sysp->sys_ptr = vmem_alloc(mod_sysfile_arena, strlen(tok1) + 1,
 711  709                      VM_SLEEP);
 712  710                  (void) strcpy(sysp->sys_ptr, tok1);
↓ open down ↓ 2537 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX