URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13853>
Summary: creation of archive with attachments writes over
symlinks
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:
_______________________________________________________
Details:
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 mhmimetypes.pl) 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) )
{
dir_create($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:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13853>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV