You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
853 B
31 lines
853 B
24 years ago
|
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.");
|