Bug Tracker item #2943296, was opened at 2010-01-31 18:06
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2943296&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: daemon
Group: v3.9.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Enrico Scholz (ensc)
>Assigned to: Stevan Bajic (sbajic)
Summary: Bad usage of 'dirname()' in css* hashdrv tools

Initial Comment:
The cssconvert, cssstat and csscompress tools contain code like

|  snprintf(newfile, sizeof(newfile), "/%s/.dspam%u.css", dirname((char 
*)filename), (unsigned int) getpid());

The 'dirname(3)' function clobbers the given argument so that 'filename'
is not valid after this call anymore and tools fail to work.


| $ strace csscompress `pwd`/spampiggy.css
| ...
| open("/var/lib/dspam/data/s/p/spampiggy", O_RDWR) = -1 EISDIR (Is a directory)
| ...
| write(2, "csscompress failed on error -5\n", 31) = 31
| exit_group(1)                           = ?


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

>Comment By: Stevan Bajic (sbajic)
Date: 2010-02-02 15:47

Message:
Hallo Enrico,

this issue should be fixed in GIT HEAD. Can you try and let us know if you
still have issues?

-- 
Kind Regards from Switzerland,

Stevan Bajić

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

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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to