summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2008-06-08 17:04:42 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2008-06-08 17:04:42 +0000
commit95cc25442c0b204da94cabd25dec717c9746c5b0 (patch)
treea8cfdd479c309138c35629f5fa6fa6f28e2098af /usr.bin
parente8a79cb21277a1a4ca04f85800f4c8be52c2ccf4 (diff)
Add case for ENOSYS in errno_to_portable; ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sftp-server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index b68db4347c4..85ef0e13f78 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.81 2008/06/07 21:52:46 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.82 2008/06/08 17:04:41 dtucker Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -95,6 +95,9 @@ errno_to_portable(int unixerrno)
case EINVAL:
ret = SSH2_FX_BAD_MESSAGE;
break;
+ case ENOSYS:
+ ret = SSH2_FX_OP_UNSUPPORTED;
+ break;
default:
ret = SSH2_FX_FAILURE;
break;