vsftpd-3.0.3-fix.patch 1.0 KB

1234567891011121314151617181920212223242526
  1. diff -Nuar vsftpd-3.0.3.orig/sysstr.c vsftpd-3.0.3/sysstr.c
  2. --- vsftpd-3.0.3.orig/sysstr.c 2011-12-14 12:26:39.000000000 +0200
  3. +++ vsftpd-3.0.3/sysstr.c 2021-12-09 12:28:49.969965834 +0200
  4. @@ -74,7 +74,8 @@
  5. int
  6. str_open(const struct mystr* p_str, const enum EVSFSysStrOpenMode mode)
  7. {
  8. - enum EVSFSysUtilOpenMode open_mode = kVSFSysStrOpenUnknown;
  9. +/* enum EVSFSysUtilOpenMode open_mode = kVSFSysStrOpenUnknown;*/
  10. + int open_mode = kVSFSysStrOpenUnknown;
  11. switch (mode)
  12. {
  13. case kVSFSysStrOpenReadOnly:
  14. diff -Nuar vsftpd-3.0.3.orig/vsf_findlibs.sh vsftpd-3.0.3/vsf_findlibs.sh
  15. --- vsftpd-3.0.3.orig/vsf_findlibs.sh 2012-03-28 05:17:41.000000000 +0300
  16. +++ vsftpd-3.0.3/vsf_findlibs.sh 2021-12-09 12:32:27.509965704 +0200
  17. @@ -36,7 +36,7 @@
  18. locate_library /lib/libsocket.so && echo "-lsocket";
  19. # Look for libnsl. Solaris needs this.
  20. -locate_library /lib/libnsl.so && echo "-lnsl";
  21. +#locate_library /lib/libnsl.so && echo "-lnsl";
  22. # Look for libresolv. Solaris needs this.
  23. locate_library /lib/libresolv.so && echo "-lresolv";