Skip to content

Commit 0288a26

Browse files
committed
fix AuthorizedKeysFiles path resolution on Windows
1 parent e0130c0 commit 0288a26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

auth2-pubkey.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,9 @@ user_key_allowed(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
820820
file = expand_authorized_keys(
821821
options.authorized_keys_files[i], pw);
822822
temporarily_use_uid(pw);
823+
#ifdef WINDOWS
824+
convertToForwardslash(file);
825+
#endif // WINDOWS
823826
r = glob(file, 0, NULL, &gl);
824827
restore_uid();
825828
if (r != 0) {

0 commit comments

Comments
 (0)