fix typo in name of authorized_keys file when canceling adding a key
This commit is contained in:
parent
b9bbc11f0f
commit
4c0fb330eb
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ removeAuthorizedKeys :: Bool -> FilePath -> SshPubKey -> IO ()
|
|||
removeAuthorizedKeys rsynconly dir pubkey = do
|
||||
let keyline = authorizedKeysLine rsynconly dir pubkey
|
||||
sshdir <- sshDir
|
||||
let keyfile = sshdir </> ".authorized_keys"
|
||||
let keyfile = sshdir </> "authorized_keys"
|
||||
ls <- lines <$> readFileStrict keyfile
|
||||
writeFile keyfile $ unlines $ filter (/= keyline) ls
|
||||
|
||||
|
|
Loading…
Reference in a new issue