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/krtld/kobj.c
          +++ new/usr/src/uts/common/krtld/kobj.c
↓ open down ↓ 3495 lines elided ↑ open up ↑
3496 3496                  } else {
3497 3497                          q = name;
3498 3498                          while (*q)
3499 3499                                  *p++ = *q++;
3500 3500                  }
3501 3501                  *p = 0;
3502 3502                  if ((file = kobj_open_file(fullname)) != (struct _buf *)-1) {
3503 3503                          kobj_free(fullname, maxpathlen);
3504 3504                          return (file);
3505 3505                  }
3506      -                while (*pathp == ' ')
     3506 +                while (*pathp == ' ' || *pathp == ':')
3507 3507                          pathp++;
3508 3508                  if (*pathp == 0)
3509 3509                          break;
3510 3510  
3511 3511          }
3512 3512          kobj_free(fullname, maxpathlen);
3513 3513          if (_moddebug & MODDEBUG_ERRMSG) {
3514 3514                  _kobj_printf(ops, "can't open %s,", name);
3515 3515                  _kobj_printf(ops, " path is %s\n", pathpsave);
3516 3516          }
↓ open down ↓ 1152 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX