proftpd-1.2.4.patch 853 B

12345678910111213141516171819202122232425262728293031
  1. Index: modules/mod_ls.c
  2. ===================================================================
  3. RCS file: /var/proftpd/proftpd-1.2/modules/mod_ls.c,v
  4. retrieving revision 1.45
  5. diff -u -r1.45 mod_ls.c
  6. --- modules/mod_ls.c 2001/09/26 15:32:47 1.45
  7. +++ modules/mod_ls.c 2001/12/05 18:59:50
  8. @@ -1018,7 +1018,10 @@
  9. glob_t g;
  10. int a;
  11. char pbuffer[MAXPATHLEN + 1] = "";
  12. -
  13. +
  14. + /* make sure the glob_t is initialized */
  15. + memset(&g, '\0', sizeof(glob_t));
  16. +
  17. if(*arg == '~') {
  18. struct passwd *pw;
  19. int i;
  20. @@ -1491,6 +1494,10 @@
  21. if(strpbrk(target,"{[*?") != NULL) {
  22. glob_t g;
  23. char **path,*p;
  24. +
  25. + /* make sure the glob_t is initialized */
  26. + memset(&g, '\0', sizeof(glob_t));
  27. +
  28. if(fs_glob(target,GLOB_PERIOD,NULL,&g) != 0) {
  29. add_response_err(R_550,"No files found.");