Bug Tracker item #2819960, was opened at 2009-07-11 06:36
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2819960&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dean Takemori (deantakemori)
Assigned to: Stevan Bajic (sbajic)
Summary: csscompress creates new file in /tmp

Initial Comment:
csscompress.c:
  snprintf(newfile, sizeof(newfile), "/tmp/%u.css", (unsigned int) getpid());


This causes errors when the .css file is not on the same device:

rename(/tmp/30842.css, dspam.css): Invalid cross-device link


----------------------------------------------------------------------

>Comment By: Stevan Bajic (sbajic)
Date: 2009-07-11 17:03

Message:
Should be fixed in GIT commit ff880cc990ecccbd9b4d788bfd8463e9df779435

Kind Regards from Switzerland

Stevan Bajic

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2009-07-11 09:39

Message:
Hallo Dean

That error is there since ages :) I know about it. Have run my self into
it. So far we have not touched much of the helper tools for the Hash driver
in 3.9.0. We will however fix that for the final 3.9.0 release. I will use
this bug report here to inform you about our progress.

Thanks for reminding us about the issue.


Kind Regards from Switzerland

Stevan Bajic

----------------------------------------------------------------------

Comment By: Julien Valroff (valroff)
Date: 2009-07-11 08:33

Message:
Hi,

The Debian package has a patch for this:
-  snprintf(newfile, sizeof(newfile), "/tmp/%u.css", (unsigned int)
getpid());
+  snprintf(newfile, sizeof(newfile), "%s/%u.css", dirname(filename),
(unsigned int) getpid());

Cheers,
Julien

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2819960&group_id=250683

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to