Bump github.com/gookit/config/v2 from 2.2.2 to 2.2.3
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.2 to 2.2.3. - [Release notes](https://github.com/gookit/config/releases) - [Commits](https://github.com/gookit/config/compare/v2.2.2...v2.2.3) --- updated-dependencies: - dependency-name: github.com/gookit/config/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
69bd2c24a7
commit
0aafeccb93
-3
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package sysutil
|
||||
|
||||
@@ -12,7 +11,6 @@ import (
|
||||
// ChangeUserByName change work user by new username.
|
||||
func ChangeUserByName(newUname string) (err error) {
|
||||
u := MustFindUser(newUname)
|
||||
|
||||
// syscall.Setlogin(newUname)
|
||||
return ChangeUserUidGid(strutil.IntOrPanic(u.Uid), strutil.IntOrPanic(u.Gid))
|
||||
}
|
||||
@@ -27,6 +25,5 @@ func ChangeUserUidGid(newUID int, newGid int) (err error) {
|
||||
err = syscall.Setgid(newGid)
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user