summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2021-10-24 22:23:13 +0200
committerStefan Weil <sw@weilnetz.de>2021-10-24 22:27:39 +0200
commit22270fb84534fefa494ad3751ea42753dfc8f675 (patch)
tree40a6fe60d2eeb6945c905fbf39450ebaab089fc3 /pkg
parent54c630aa0a4dbbddb04ac07b223687aeaa6daefd (diff)
downloadpodman-22270fb84534fefa494ad3751ea42753dfc8f675.tar.gz
podman-22270fb84534fefa494ad3751ea42753dfc8f675.tar.bz2
podman-22270fb84534fefa494ad3751ea42753dfc8f675.zip
Replace 'an user' => 'a user'
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/cgroups/cgroups.go2
-rw-r--r--pkg/systemd/dbus.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go
index f1ef538e4..1debc020c 100644
--- a/pkg/cgroups/cgroups.go
+++ b/pkg/cgroups/cgroups.go
@@ -461,7 +461,7 @@ func (c *CgroupControl) CreateSystemdUnit(path string) error {
return systemdCreate(path, conn)
}
-// GetUserConnection returns an user connection to D-BUS
+// GetUserConnection returns a user connection to D-BUS
func GetUserConnection(uid int) (*systemdDbus.Conn, error) {
return systemdDbus.NewConnection(func() (*dbus.Conn, error) {
return dbusAuthConnection(uid, dbus.SessionBusPrivate)
diff --git a/pkg/systemd/dbus.go b/pkg/systemd/dbus.go
index c49f537b6..04aaa117a 100644
--- a/pkg/systemd/dbus.go
+++ b/pkg/systemd/dbus.go
@@ -84,7 +84,7 @@ func IsSystemdSessionValid(uid int) bool {
return true
}
-// GetDbusConnection returns an user connection to D-BUS
+// GetDbusConnection returns a user connection to D-BUS
func GetLogindConnection(uid int) (*godbus.Conn, error) {
return dbusAuthConnectionLogind(uid)
}