[openssh-commits] [openssh] 01/03: upstream: don't care about glob() return value here.
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Apr 6 13:27:25 AEST 2023
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 3b9ceaad7ad63c1c03c2a89e148340ad3a62a482
Author: djm at openbsd.org <djm at openbsd.org>
Date: Thu Apr 6 03:12:32 2023 +0000
upstream: don't care about glob() return value here.
OpenBSD-Commit-ID: 85bb82fea90478a482e9f65a1bec0aa24227fd66
---
sftp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sftp.c b/sftp.c
index 13d05793..f99f0561 100644
--- a/sftp.c
+++ b/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 <djm at openbsd.org>
*
@@ -2006,7 +2006,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++) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list