chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5363a6
)
accounts: Actually parse ssh: accounts
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 2 Jun 2021 16:01:52 +0000
(17:01 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 2 Jun 2021 17:06:26 +0000
(18:06 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/accounts.rs
patch
|
blob
|
history
diff --git
a/src/accounts.rs
b/src/accounts.rs
index 4351820042441a5558739ad5f73c9ce79313c221..03655b2cd07a2e7de387c4854fe5d2e196842ca6 100644
(file)
--- a/
src/accounts.rs
+++ b/
src/accounts.rs
@@
-181,6
+181,10
@@
impl AccountScope {
let user = next()?.to_owned();
AccountScope::Unix { user }
}
+ "ssh" => {
+ let user = next()?.to_owned();
+ AccountScope::Ssh { user }
+ }
_ => {
throw!(InvalidScopedName::UnknownScopeKind)
}