Ignore:
Timestamp:
Jul 8, 2008, 9:01:25 PM (11 years ago)
Author:
pmagrath@…
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.