aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-31 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-31 20:20:20 +0100
commit085d7a0bccede71445815b789b231356dbbc150f (patch)
tree129aec4d7be0a42b5dd6a516675119617a7337b3 /src/c_init.go
parentqwe (diff)
downloadhardflip-085d7a0bccede71445815b789b231356dbbc150f.tar.gz
hardflip-085d7a0bccede71445815b789b231356dbbc150f.tar.bz2
hardflip-085d7a0bccede71445815b789b231356dbbc150f.tar.xz
hardflip-085d7a0bccede71445815b789b231356dbbc150f.tar.zst
hardflip-085d7a0bccede71445815b789b231356dbbc150f.zip
tmp
Diffstat (limited to '')
-rw-r--r--src/c_init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/c_init.go b/src/c_init.go
index 85eb9c8..f09da57 100644
--- a/src/c_init.go
+++ b/src/c_init.go
@@ -56,6 +56,7 @@ import (
"fmt"
"os"
"path/filepath"
+ "strings"
)
type HardOpts struct {
@@ -107,6 +108,7 @@ func c_recurse_data_dir(dir, root string, opts HardOpts,
dir, filename, err)
*load_err = append(*load_err, errors.New(str))
}
+ host_node.Pass = strings.TrimSuffix(host_node.Pass, "\n")
}
dir_node.lhost.add_back(host_node)
}