patch-sshfs_c 943 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-sshfs_c,v 1.3 2015/09/25 07:17:57 landry Exp $
  2. --- sshfs.c.orig Wed Jan 8 16:34:52 2014
  3. +++ sshfs.c Fri Sep 25 09:16:48 2015
  4. @@ -11,7 +11,6 @@
  5. #include <fuse.h>
  6. #include <fuse_opt.h>
  7. -#include <fuse_lowlevel.h>
  8. #include <assert.h>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. @@ -32,6 +31,7 @@
  12. #include <sys/utsname.h>
  13. #include <sys/mman.h>
  14. #include <sys/poll.h>
  15. +#include <sys/mount.h>
  16. #include <netinet/in.h>
  17. #include <netinet/tcp.h>
  18. #include <glib.h>
  19. @@ -1552,7 +1552,7 @@ static int sftp_error_to_errno(uint32_t error)
  20. case SSH_FX_NO_SUCH_FILE: return ENOENT;
  21. case SSH_FX_PERMISSION_DENIED: return EACCES;
  22. case SSH_FX_FAILURE: return EPERM;
  23. - case SSH_FX_BAD_MESSAGE: return EBADMSG;
  24. + case SSH_FX_BAD_MESSAGE: return ENOMSG;
  25. case SSH_FX_NO_CONNECTION: return ENOTCONN;
  26. case SSH_FX_CONNECTION_LOST: return ECONNABORTED;
  27. case SSH_FX_OP_UNSUPPORTED: return EOPNOTSUPP;