[openssh-commits] [openssh] 01/05: upstream: correct error value

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Sep 17 20:40:13 AEST 2022


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 30b2a7e4291fb9e357f80a237931ff008d686d3b
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Fri Sep 16 06:55:37 2022 +0000

    upstream: correct error value
    
    OpenBSD-Commit-ID: 780efcbad76281f11f14b2a5ff04eb6db3dfdad4
---
 sftp-server.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sftp-server.c b/sftp-server.c
index 85f4345e..8f30c181 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.141 2022/08/12 05:20:28 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.142 2022/09/16 06:55:37 djm Exp $ */
 /*
  * Copyright (c) 2000-2004 Markus Friedl.  All rights reserved.
  *
@@ -1701,7 +1701,7 @@ process_extended_home_directory(u_int32_t id)
 
 	debug3("request %u: home-directory \"%s\"", id, username);
 	if ((user_pw = getpwnam(username)) == NULL) {
-		send_status(id, errno_to_portable(errno));
+		send_status(id, SSH2_FX_FAILURE);
 		goto out;
 	}
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list