summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-09 22:48:31 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-09 22:48:31 +1000
commit422c34c96dd7e6dcb507747bdbb499e96000aa5f (patch)
tree1f10f49a07ee3e5494d586e0f1164e7029dad3af /sftp-server.c
parent77001384cc067a4613dd6d7a07b9a786f7d7f1bb (diff)
- dtucker@cvs.openbsd.org 2008/06/08 17:04:41
[sftp-server.c] Add case for ENOSYS in errno_to_portable; ok deraadt
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sftp-server.c b/sftp-server.c
index f6992616..fbf62098 100644
--- a/sftp-server.c
+++ b/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.
*
@@ -104,6 +104,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;