Skip to content

Commit 04be129

Browse files
committed
1 parent 657f7e0 commit 04be129

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/yggdrasil/chuser_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func chuser(input string) error {
1717
if givenUser == "" {
1818
return fmt.Errorf("user is empty")
1919
}
20-
if strings.Index(input, ":") > -1 && givenGroup == "" {
20+
if strings.Contains(input, ":") && givenGroup == "" {
2121
return fmt.Errorf("group is empty")
2222
}
2323

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/yggdrasil-network/yggdrasil-go
33
go 1.21
44

55
require (
6-
github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9
6+
github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3
77
github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d
88
github.com/cheggaaa/pb/v3 v3.1.5
99
github.com/coder/websocket v1.8.12

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9 h1:myI8fs7+Iw6g/ywvY9QNQOEzny51AklMz4sF0ErtTm8=
2-
github.com/Arceliar/ironwood v0.0.0-20241210120540-9deb08d9f8f9/go.mod h1:SrrElc3FFMpYCODSr11jWbLFeOM8WsY+DbDY/l2AXF0=
1+
github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3 h1:d8N0z+udAnbU5PdjpLSNPTWlqeU/nnYsQ42B6+879aw=
2+
github.com/Arceliar/ironwood v0.0.0-20241213013129-743fe2fccbd3/go.mod h1:SrrElc3FFMpYCODSr11jWbLFeOM8WsY+DbDY/l2AXF0=
33
github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d h1:UK9fsWbWqwIQkMCz1CP+v5pGbsGoWAw6g4AyvMpm1EM=
44
github.com/Arceliar/phony v0.0.0-20220903101357-530938a4b13d/go.mod h1:BCnxhRf47C/dy/e/D2pmB8NkB3dQVIrkD98b220rx5Q=
55
github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow=

0 commit comments

Comments
 (0)