summaryrefslogtreecommitdiff
path: root/libgo/go/os/user/listgroups_stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/user/listgroups_stub.go')
-rw-r--r--libgo/go/os/user/listgroups_stub.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/libgo/go/os/user/listgroups_stub.go b/libgo/go/os/user/listgroups_stub.go
new file mode 100644
index 00000000000..4cf808b65de
--- /dev/null
+++ b/libgo/go/os/user/listgroups_stub.go
@@ -0,0 +1,19 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build android || (js && !wasm)
+
+package user
+
+import (
+ "errors"
+)
+
+func init() {
+ groupListImplemented = false
+}
+
+func listGroups(*User) ([]string, error) {
+ return nil, errors.New("user: list groups not implemented")
+}