Index: parse.c
===================================================================
RCS file: /cvs/hypermail/hypermail/src/parse.c,v
retrieving revision 1.27
diff -c -r1.27 parse.c
*** parse.c	1999/08/16 08:47:28	1.27
--- parse.c	1999/09/07 22:30:31
***************
*** 1234,1240 ****
                content = CONTENT_BINARY;
  
                /* see if there's a file name to use: */
!               fname = strstr(ptr, "filename=");
                if (fname) {
                  sscanf(fname+10, "%128[^\"]", attachname);
                  safe_filename(attachname);
--- 1234,1240 ----
                content = CONTENT_BINARY;
  
                /* see if there's a file name to use: */
!               fname = strcasestr(ptr, "filename=");
                if (fname) {
                  sscanf(fname+10, "%128[^\"]", attachname);
                  safe_filename(attachname);
***************
*** 1375,1381 ****
                   this content */
                if(CONTENT_IGNORE != content) {
    
!                 fname = strstr(ptr, "name=");
                  if (fname) {
                    fname+=5;
                    if('\"' == *fname)
--- 1375,1381 ----
                   this content */
                if(CONTENT_IGNORE != content) {
    
!                 fname = strcasestr(ptr, "name=");
                  if (fname) {
                    fname+=5;
                    if('\"' == *fname)
***************
*** 1902,1909 ****
                if(!nameisuniq) {
                  /* first make the path to create this in */
                  sprintf(checkpath, "%s%c%s",
!                         dir, PATH_SEPARATOR,
!                         newdir);
                  /* get a random name */
                  binname = tmpname(checkpath, FILE_PREFIXER "bin");
                }             
--- 1902,1917 ----
                if(!nameisuniq) {
                  /* first make the path to create this in */
                  sprintf(checkpath, "%s%c%s",
!                         dir, PATH_SEPARATOR, newdir);
! 
!                 mkdir(checkpath, set_dirmode);
!                 if (chmod(checkpath, set_dirmode) == -1) {
!                   sprintf(errmsg,"%s \"%s\" to %o.",
!                           lang[MSG_CANNOT_CHMOD], checkpath, set_dirmode);
!                   progerr(errmsg);
!                 }
! 
!                 fprintf(stderr, "\nCreated dir %s\n", checkpath);
                  /* get a random name */
                  binname = tmpname(checkpath, FILE_PREFIXER "bin");
                }             
