diff options
author | u <u@billy> | 2023-05-29 06:30:11 -0400 |
---|---|---|
committer | u <u@billy> | 2023-05-29 06:30:11 -0400 |
commit | 3f7ac1f42b1ae91ec7ea07c0fae562cccd794e0b (patch) | |
tree | e47dee88a6df8de82ef62f9512694428bf32cae0 /src/user-d.AuthorizedKeysCommand | |
parent | 6b55a5205508ef7bb0fa17323e9cfafb4e98b48f (diff) |
fix shell escaping to fix systemd
fix for filenames containing hyphens
Diffstat (limited to 'src/user-d.AuthorizedKeysCommand')
-rwxr-xr-x | src/user-d.AuthorizedKeysCommand | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/user-d.AuthorizedKeysCommand b/src/user-d.AuthorizedKeysCommand deleted file mode 100755 index 6bf0ec9..0000000 --- a/src/user-d.AuthorizedKeysCommand +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | cmd=/etc/ssh/user-d.AnonymousForceCommand | ||
3 | [ -x "$cmd" ] || exit | ||
4 | |||
5 | key=$1 | ||
6 | shift | ||
7 | printf 'restrict,pty,command="%s" %s\n' "$cmd $*" "$key" | ||