From f7d6def397205c87aaac119b16ac746e990aab1f Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Tue, 31 Aug 2021 00:23:45 -0500 Subject: Reapply patches --- debian/patches/golang-1.3-compat-readdir | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/patches/golang-1.3-compat-readdir (limited to 'debian/patches/golang-1.3-compat-readdir') diff --git a/debian/patches/golang-1.3-compat-readdir b/debian/patches/golang-1.3-compat-readdir new file mode 100644 index 0000000..b9e5c6d --- /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 +@@ -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) -- cgit v1.2.3