diff options
Diffstat (limited to 'debian/patches/golang-1.3-compat-readdir')
-rw-r--r-- | debian/patches/golang-1.3-compat-readdir | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/golang-1.3-compat-readdir b/debian/patches/golang-1.3-compat-readdir new file mode 100644 index 0000000..3c429a9 --- /dev/null +++ b/debian/patches/golang-1.3-compat-readdir @@ -0,0 +1,23 @@ +Index: planr/fs.go +=================================================================== +--- planr.orig/fs.go ++++ planr/fs.go +@@ -116,7 +116,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 { +@@ -125,8 +125,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) |