Changeset 823:f879251284eb for attach.c

Show
Ignore:
Timestamp:
1999-02-28 00:29:17 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
mutt-1-0-stable
Message:

Fix the $TMPDIR raace noted by Hamish Moffat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r788 r823  
    708708      memset (&s, 0, sizeof (s)); 
    709709      if (flags == M_SAVE_APPEND) 
    710         s.fpout = safe_fopen (path, "a"); 
     710        s.fpout = fopen (path, "a"); 
     711      else if (flags == M_SAVE_OVERWRITE) 
     712        s.fpout = fopen (path, "w"); 
    711713      else 
    712         s.fpout = fopen (path, "w"); 
     714        s.fpout = safe_fopen (path, "w"); 
    713715      if (s.fpout == NULL) 
    714716      { 
     
    772774 
    773775  if (flags == M_SAVE_APPEND) 
    774     s.fpout = safe_fopen (path, "a"); 
     776    s.fpout = fopen (path, "a"); 
     777  else if (flags == M_SAVE_OVERWRITE) 
     778    s.fpout = fopen (path, "w"); 
    775779  else 
    776     s.fpout = fopen (path, "w"); 
     780    s.fpout = safe_fopen (path, "w"); 
     781 
    777782  if (s.fpout == NULL) 
    778783  {