Skip to content

Commit 1aeefd9

Browse files
authored
Merge pull request #4291 from kolyshkin/codespell-2.3.0
Fix codespell warnings
2 parents 68564ee + 177c7d4 commit 1aeefd9

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

features.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var featuresCommand = cli.Command{
2727
return err
2828
}
2929

30-
tru := true
30+
t := true
3131

3232
feat := features.Features{
3333
OCIVersionMin: "1.0.0",
@@ -43,24 +43,24 @@ var featuresCommand = cli.Command{
4343
Namespaces: specconv.KnownNamespaces(),
4444
Capabilities: capabilities.KnownCapabilities(),
4545
Cgroup: &features.Cgroup{
46-
V1: &tru,
47-
V2: &tru,
48-
Systemd: &tru,
49-
SystemdUser: &tru,
50-
Rdma: &tru,
46+
V1: &t,
47+
V2: &t,
48+
Systemd: &t,
49+
SystemdUser: &t,
50+
Rdma: &t,
5151
},
5252
Apparmor: &features.Apparmor{
53-
Enabled: &tru,
53+
Enabled: &t,
5454
},
5555
Selinux: &features.Selinux{
56-
Enabled: &tru,
56+
Enabled: &t,
5757
},
5858
IntelRdt: &features.IntelRdt{
59-
Enabled: &tru,
59+
Enabled: &t,
6060
},
6161
MountExtensions: &features.MountExtensions{
6262
IDMap: &features.IDMap{
63-
Enabled: &tru,
63+
Enabled: &t,
6464
},
6565
},
6666
},
@@ -74,7 +74,7 @@ var featuresCommand = cli.Command{
7474

7575
if seccomp.Enabled {
7676
feat.Linux.Seccomp = &features.Seccomp{
77-
Enabled: &tru,
77+
Enabled: &t,
7878
Actions: seccomp.KnownActions(),
7979
Operators: seccomp.KnownOperators(),
8080
Archs: seccomp.KnownArchs(),

utils_linux.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ func setupIO(process *libcontainer.Process, rootuid, rootgid int, createTTY, det
143143
return setupProcessPipes(process, rootuid, rootgid)
144144
}
145145

146-
// createPidFile creates a file with the processes pid inside it atomically
147-
// it creates a temp file with the paths filename + '.' infront of it
148-
// then renames the file
146+
// createPidFile creates a file containing the PID,
147+
// doing so atomically (via create and rename).
149148
func createPidFile(path string, process *libcontainer.Process) error {
150149
pid, err := process.Pid()
151150
if err != nil {

0 commit comments

Comments
 (0)