Skip to content

Commit 27e1493

Browse files
committed
fix bad spelling
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 8eb9888 commit 27e1493

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mount/mount.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,14 @@ func StartsWithBackstep(rel string) bool {
346346
return rel == ".." || strings.HasPrefix(filepath.ToSlash(rel), "../")
347347
}
348348

349-
// sanitizedOptionsForLogging will return a comma seperated string containing
349+
// sanitizedOptionsForLogging will return a comma separated string containing
350350
// options and sensitiveOptions. Each entry in sensitiveOptions will be
351351
// replaced with the string sensitiveOptionsRemoved
352352
// e.g. o1,o2,<masked>,<masked>
353353
func sanitizedOptionsForLogging(options []string, sensitiveOptions []string) string {
354-
seperator := ""
354+
separator := ""
355355
if len(options) > 0 && len(sensitiveOptions) > 0 {
356-
seperator = ","
356+
separator = ","
357357
}
358358

359359
sensitiveOptionsStart := ""
@@ -364,7 +364,7 @@ func sanitizedOptionsForLogging(options []string, sensitiveOptions []string) str
364364
}
365365

366366
return strings.Join(options, ",") +
367-
seperator +
367+
separator +
368368
sensitiveOptionsStart +
369369
sensitiveOptionsEnd
370370
}

mount/mount_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (mounter *Mounter) MountSensitive(source string, target string, fstype stri
103103
}
104104

105105
// doMount runs the mount command. mounterPath is the path to mounter binary if containerized mounter is used.
106-
// sensitiveOptions is an extention of options except they will not be logged (because they may contain sensitive material)
106+
// sensitiveOptions is an extension of options except they will not be logged (because they may contain sensitive material)
107107
func (mounter *Mounter) doMount(mounterPath string, mountCmd string, source string, target string, fstype string, options []string, sensitiveOptions []string) error {
108108
mountArgs, mountArgsLogStr := MakeMountArgsSensitive(source, target, fstype, options, sensitiveOptions)
109109
if len(mounterPath) > 0 {
@@ -187,7 +187,7 @@ func MakeMountArgs(source, target, fstype string, options []string) (mountArgs [
187187
}
188188

189189
// MakeMountArgsSensitive makes the arguments to the mount(8) command.
190-
// sensitiveOptions is an extention of options except they will not be logged (because they may contain sensitive material)
190+
// sensitiveOptions is an extension of options except they will not be logged (because they may contain sensitive material)
191191
func MakeMountArgsSensitive(source, target, fstype string, options []string, sensitiveOptions []string) (mountArgs []string, mountArgsLogStr string) {
192192
// Build mount command as follows:
193193
// mount [-t $fstype] [-o $options] [$source] $target

0 commit comments

Comments
 (0)