[bug #13853] creation of archive with attachments writes over symlinks

2005-07-19 18:14:40


                 Summary: creation of archive with attachments writes over
                 Project: MHonArc
            Submitted by: None
            Submitted on: Tue 07/19/2005 at 21:14
                Category: MIME
                Severity: 3 - Normal
              Item Group: Undesired Behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: Linux
            Perl Version: 5.8.1
       Component Version: 2.6.11
           Fixed Release: 



We use a symlink farm to house the on-disk archive state for local
reasons (v's real directories)

when a email with an attachment is received, the symlink is destroyed
and a directory recreated in its place. (as that is what dir_create does!)

in sub write_attachment (file an unchecked call
to dir_create is made.

As a workaround I have conditionalised the use of dir_create as follows.

## check to see if the  symlink is already there! - tjm
    if ( !(-l $pathname) )

While you obviously see the deletion of symlinks as a feature, I see it as
a bug. Perhaps you could add a configuration flag that will allow people
to selectively disable the symlink removal behaviour?


Reply to this item at:


  Message sent via/by Savannah

To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the

<Prev in Thread] Current Thread [Next in Thread>