diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-18 15:07:24 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-18 22:37:34 -0500 |
commit | 379e4d7e4d2539f35d559d4b0752531e546238a9 (patch) | |
tree | 844ba145ef8bb03824985d3e7a47740b2b5438c2 /nslcd_server/interface_backend.go.gen | |
parent | 44798efb9ec9a89416658707d952e60e8e5fe01b (diff) |
nslcd_{server,systemd}: BREAKING CHANGE: use contexts
Diffstat (limited to 'nslcd_server/interface_backend.go.gen')
-rwxr-xr-x | nslcd_server/interface_backend.go.gen | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nslcd_server/interface_backend.go.gen b/nslcd_server/interface_backend.go.gen index 4749d0c..4ced5e7 100755 --- a/nslcd_server/interface_backend.go.gen +++ b/nslcd_server/interface_backend.go.gen @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (C) 2015 Luke Shumaker <lukeshu@sbcglobal.net> +# Copyright (C) 2015, 2017 Luke Shumaker <lukeshu@sbcglobal.net> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -24,7 +24,8 @@ cat <<EOF | gofmt package nslcd_server import ( - "golang.org/x/sys/unix" + "context" + p "git.lukeshu.com/go/libnslcd/nslcd_proto" ) @@ -33,7 +34,7 @@ import ( // that the nslcd server may reply to is implemented simply as a // method that returns a channel of the resulting values. type Backend interface { - $(sed -rn 's/([^_]+)(.*)/\1\2(unix.Ucred, p.Request_\1\2) <-chan p.\1/p' "$requests" | grep -v PAM) - $(sed -rn 's/(PAM)(.*)/\1\2(unix.Ucred, p.Request_\1\2) <-chan p.\1\2/p' "$requests") + $(sed -rn 's/([^_]+)(.*)/\1\2(context.Context, p.Request_\1\2) <-chan p.\1/p' "$requests" | grep -v PAM) + $(sed -rn 's/(PAM)(.*)/\1\2(context.Context, p.Request_\1\2) <-chan p.\1\2/p' "$requests") } EOF |