misc: Fix typos and spelling errors
This commit is contained in:
@@ -69,7 +69,7 @@ func modeIsValidWhat(what string) bool {
|
||||
return len(what) == 0
|
||||
}
|
||||
|
||||
// modeAssigned executes an assigment symbolic mode string (u=r). It clears out
|
||||
// modeAssigned executes an assignment symbolic mode string (u=r). It clears out
|
||||
// any bits for every subject in who and then assigns the specified modes in
|
||||
// what.
|
||||
func modeAssigned(who, what string, from os.FileMode) (os.FileMode, error) {
|
||||
@@ -208,7 +208,7 @@ func modeSubtracted(who, what string, from os.FileMode) (os.FileMode, error) {
|
||||
}
|
||||
|
||||
// modeValueFrom will return the bits requested for the mode in the correct
|
||||
// possitions for the specified subjects in who.
|
||||
// positions for the specified subjects in who.
|
||||
func modeValueFrom(who string, modeType uint32) os.FileMode {
|
||||
i := uint32(0)
|
||||
for _, w := range who {
|
||||
|
||||
@@ -51,7 +51,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// DBusInterface is the dbus interface that contains genereal methods.
|
||||
// DBusInterface is the dbus interface that contains general methods.
|
||||
DBusInterface = "org.freedesktop.DBus"
|
||||
// DBusAddMatch is the dbus method to receive a subset of dbus broadcast
|
||||
// signals.
|
||||
@@ -387,7 +387,7 @@ func GetGID(group string) (int, error) {
|
||||
return -1, errwrap.Wrapf(err, "group lookup error (%s)", group)
|
||||
}
|
||||
|
||||
// RestartUnit resarts the given dbus unit and waits for it to finish starting.
|
||||
// RestartUnit restarts the given dbus unit and waits for it to finish starting.
|
||||
func RestartUnit(ctx context.Context, conn *dbus.Conn, unit string) error {
|
||||
return unitStateAction(ctx, conn, unit, DBusRestartUnit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user