Ticket #2821: portutil.tcl.diff

File portutil.tcl.diff, 1.1 KB (added by jberry@…, 19 years ago)

Patch to base/src/portutil.tcl

  • base/src/port1.0/portutil.tcl

    RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port1.0/portutil.tcl,v
    retrieving revision 1.171
    diff -u -r1.171 portutil.tcl
     
    10961096    }
    10971097   
    10981098    if {${os.platform} == "darwin"} {
     1099    # We might consider changing this code to use nicl or dscl in batch mode
    10991100        system "niutil -create . /users/${name}"
    11001101        system "niutil -createprop . /users/${name} name ${name}"
    11011102        system "niutil -createprop . /users/${name} passwd ${passwd}"
     
    11041105        system "niutil -createprop . /users/${name} realname ${realname}"
    11051106        system "niutil -createprop . /users/${name} home ${home}"
    11061107        system "niutil -createprop . /users/${name} shell ${shell}"
     1108        system "niutil -createprop . /users/${name} AuthenticationAuthority ;ShadowHash;"
    11071109    } else {
    11081110        # XXX adduser is only available for darwin, add more support here
    11091111        ui_warn "WARNING: adduser is not implemented on ${os.platform}."