From 1407ce59ad3410964040d81d6c9a22f67d4e6688 Mon Sep 17 00:00:00 2001 From: djm Date: Thu, 6 Apr 2023 03:12:32 +0000 Subject: [PATCH] don't care about glob() return value here. --- usr.bin/ssh/sftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index 1d17616d548..569ef5a0f50 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.232 2023/03/31 04:45:08 dtucker Exp $ */ +/* $OpenBSD: sftp.c,v 1.233 2023/04/06 03:12:32 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -1978,7 +1978,7 @@ complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, tmp = make_absolute_pwd_glob(tmp, remote_path); remote_glob(conn, tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g); } else - glob(tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g); + (void)glob(tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g); /* Determine length of pwd so we can trim completion display */ for (hadglob = tmplen = pwdlen = 0; tmp[tmplen] != 0; tmplen++) { -- 2.20.1