New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 38147

Show
Ignore:
Timestamp:
07/08/2008 14:01:25 (4 years ago)
Author:
pmagrath@…
Message:

Re-wrote chown proc to use fs-traverse (suggested by Eridius. Thanks!)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gsoc08-privileges/base/src/port1.0/portutil.tcl

    r38144 r38147  
    22742274         
    22752275    if {[file isdirectory $path]} { 
    2276                 foreach g [glob [file join $path *]] { 
    2277                         chown $g $user 
     2276                fs-traverse myfile ${path} { 
     2277                        file attributes $myfile -owner [name_to_uid "$user"] 
    22782278                } 
    22792279    } 
    2280 } 
    2281  
     2280     
     2281} 
     2282