=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sftp.c,v retrieving revision 1.218 retrieving revision 1.219 diff -u -r1.218 -r1.219 --- src/usr.bin/ssh/sftp.c 2022/06/28 06:09:14 1.218 +++ src/usr.bin/ssh/sftp.c 2022/09/16 03:13:34 1.219 @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.218 2022/06/28 06:09:14 jmc Exp $ */ +/* $OpenBSD: sftp.c,v 1.219 2022/09/16 03:13:34 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -2115,7 +2115,7 @@ if (carg > 1 && line[cursor-1] != ' ') filematch = argv[carg - 1]; - if (remote != 0 && + if ((remote == REMOTE || remote == LOCAL) && complete_match(el, complete_ctx->conn, *complete_ctx->remote_pathp, filematch, remote, carg == argc, quote, terminated) != 0)