aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-05-10 00:25:49 +0200
committerJakob Unterwurzacher2020-05-10 00:25:49 +0200
commitead7008a08f9ace4591ebbc03e63fdc7ef37e502 (patch)
tree0cb34d38b9e390e410acd98d7c22bc1de205d73f /internal
parent1d145be5a17df104a7c9260c7c93b9186688659e (diff)
Fix spelling mistakes found by misspell
https://github.com/client9/misspell
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend_reverse/excluder.go2
-rw-r--r--internal/fusefrontend_reverse/rfs.go2
-rw-r--r--internal/inomap/inomap.go2
-rw-r--r--internal/nametransform/diriv.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/internal/fusefrontend_reverse/excluder.go b/internal/fusefrontend_reverse/excluder.go
index 5c0941a..c44816c 100644
--- a/internal/fusefrontend_reverse/excluder.go
+++ b/internal/fusefrontend_reverse/excluder.go
@@ -29,7 +29,7 @@ func (rfs *ReverseFS) prepareExcluder(args fusefrontend.Args) {
// Patterns passed in the -exclude command line option are prefixed
// with a leading '/' to preserve backwards compatibility (before
// wildcard matching was implemented, exclusions always were matched
-// agains the full path).
+// against the full path).
func getExclusionPatterns(args fusefrontend.Args) []string {
patterns := make([]string, len(args.Exclude)+len(args.ExcludeWildcard))
// add -exclude
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go
index 6bbdfb5..8c7ce02 100644
--- a/internal/fusefrontend_reverse/rfs.go
+++ b/internal/fusefrontend_reverse/rfs.go
@@ -37,7 +37,7 @@ type ReverseFS struct {
nameTransform nametransform.NameTransformer
// Content encryption helper
contentEnc *contentenc.ContentEnc
- // Tests wheter a path is excluded (hiden) from the user. Used by -exclude.
+ // Tests whether a path is excluded (hiden) from the user. Used by -exclude.
excluder ignore.IgnoreParser
// inoMap translates inode numbers from different devices to unique inode
// numbers.
diff --git a/internal/inomap/inomap.go b/internal/inomap/inomap.go
index fb6faf6..64bb174 100644
--- a/internal/inomap/inomap.go
+++ b/internal/inomap/inomap.go
@@ -97,7 +97,7 @@ func (m *InoMap) Translate(in QIno) (out uint64) {
return out
}
-// TranslateStat translates the inode number contained in "st" if neccessary.
+// TranslateStat translates the inode number contained in "st" if necessary.
// Convience wrapper around Translate().
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
in := QInoFromStat(st)
diff --git a/internal/nametransform/diriv.go b/internal/nametransform/diriv.go
index c216dd0..cd20ca6 100644
--- a/internal/nametransform/diriv.go
+++ b/internal/nametransform/diriv.go
@@ -66,7 +66,7 @@ func WriteDirIVAt(dirfd int) error {
// https://github.com/rfjakob/gocryptfs/issues/387 ).
//
// Note that gocryptfs.conf is still created with 0400 permissions so the
- // owner must explicitely chmod it to permit access.
+ // owner must explicitly chmod it to permit access.
const dirivPerms = 0440
iv := cryptocore.RandBytes(DirIVLen)