summaryrefslogtreecommitdiff
path: root/debian/patches/golang-1.3-compat-readdir
blob: b9e5c6dc0665ca7a23e70b0df984bf98e72557bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: planr/fs.go
===================================================================
--- planr.orig/fs.go
+++ planr/fs.go
@@ -224,7 +224,7 @@ func collectFromDir(
 
   // Read the entries in this directory
   for {
-    dirs, err := fp.ReadDir(100)
+    dirs, err := fp.Readdir(100)
     if err == io.EOF {
       break
     } else if err != nil {
@@ -233,8 +233,8 @@ func collectFromDir(
 
 
     for _, ent := range dirs {
-      child := path.Join(dir, ent.Name())
       nm := ent.Name()
+      child := path.Join(dir, nm)
 
       if ent.IsDir() {
         collectFromDir(child, defaults, cfgs, units)