user that doesn't exist; better matches what the shell does
ok deraadt@
-/* $OpenBSD: sftp-server.c,v 1.130 2021/11/06 10:13:39 dtucker Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.131 2021/11/08 21:32:49 djm Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
} else {
/* ~user expansions */
if (tilde_expand(path, pw->pw_uid, &npath) != 0) {
- send_status(id, errno_to_portable(EINVAL));
+ send_status(id, errno_to_portable(ENOENT));
goto out;
}
free(path);