12345678910111213141516171819202122232425262728293031 |
- 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.");
|