瀏覽代碼

add patch we forgot

Ralf S. Engelschall 24 年之前
父節點
當前提交
0f1500fee6
共有 1 個文件被更改,包括 30 次插入0 次删除
  1. 30 0
      proftpd/proftpd-1.2.4.patch

+ 30 - 0
proftpd/proftpd-1.2.4.patch

@@ -0,0 +1,30 @@
+Index: modules/mod_ls.c
+===================================================================
+RCS file: /var/proftpd/proftpd-1.2/modules/mod_ls.c,v
+retrieving revision 1.45
+diff -u -r1.45 mod_ls.c
+--- modules/mod_ls.c	2001/09/26 15:32:47	1.45
++++ modules/mod_ls.c	2001/12/05 18:59:50
+@@ -1018,7 +1018,10 @@
+     glob_t g;
+     int    a;
+     char   pbuffer[MAXPATHLEN + 1] = "";
+-      
++     
++    /* make sure the glob_t is initialized */
++    memset(&g, '\0', sizeof(glob_t));
++ 
+     if(*arg == '~') {
+       struct passwd *pw;
+       int i;
+@@ -1491,6 +1494,10 @@
+ 	if(strpbrk(target,"{[*?") != NULL) {
+ 		glob_t g;
+ 		char **path,*p;
++
++                /* make sure the glob_t is initialized */
++                memset(&g, '\0', sizeof(glob_t));
++
+ 		
+ 		if(fs_glob(target,GLOB_PERIOD,NULL,&g) != 0) {
+ 			add_response_err(R_550,"No files found.");