forked from hummypkg/webif
skip non-directory links
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@292 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
d5b27acd46
commit
2c61281b09
@ -27,6 +27,7 @@ foreach line [split [exec /mod/bin/busybox/du -h "$dir/"] "\n"] {
|
||||
# Handle symbolic links.
|
||||
foreach file [glob -nocomplain "$dir/*"] {
|
||||
if {[catch {set lk [file readlink $file]}]} continue
|
||||
if {![file isdirectory $lk]} continue
|
||||
foreach line [split [exec /mod/bin/busybox/du -h "$lk"] "\n"] {
|
||||
set fields [split $line "\t"]
|
||||
if {[lindex $fields 1] eq $lk} {
|
||||
|
Loading…
Reference in New Issue
Block a user