patch-modules_mod_auth_unix_c 870 B

1234567891011121314151617181920212223242526272829
  1. --- proftpd-1.3.3.orig/modules/mod_auth_unix.c 2009-10-14 20:49:31.000000000 +0200
  2. +++ proftpd-1.3.3/modules/mod_auth_unix.c 2010-05-30 13:02:15.515625000 +0200
  3. @@ -77,6 +77,7 @@
  4. # endif
  5. #endif /* PR_USE_SIA */
  6. +/*
  7. #ifdef CYGWIN
  8. typedef void *HANDLE;
  9. typedef unsigned long DWORD;
  10. @@ -85,7 +86,8 @@ typedef unsigned long DWORD;
  11. DWORD WINAPI GetVersion(void);
  12. extern HANDLE cygwin_logon_user (const struct passwd *, const char *);
  13. extern void cygwin_set_impersonation_token (const HANDLE);
  14. -#endif /* CYGWIN */
  15. +#endif
  16. +*/
  17. #ifdef SETGRENT_VOID
  18. # define RETSETGRENTTYPE void
  19. @@ -738,7 +740,7 @@ MODRET pw_check(cmd_rec *cmd) {
  20. #else /* !PR_USE_SIA */
  21. -# ifdef CYGWIN
  22. +# if 0
  23. /* We have to do special Windows NT voodoo with Cygwin in order to be
  24. * able to switch UID/GID. More info at
  25. * http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID