First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 201660
Alias:
Product:
Component:
Status: CLOSED
Resolution: DUPLICATE of bug 201656
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dirk Silkenbäumer <dirk-s@muenster.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 201660 depends on: Show dependency tree
Bug 201660 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-08 09:12 0000
The housekeeping jobs (dspam.cron) calls cssclean and csscompress to clean the
*.css files. 

1. csscompress gives an error when /tmp is mounted seperately cause the
temp-file is just renamed:
rename(/tmp/12233.css, /var/spool/dspam/data/local/dirk/dirk.css): Invalid
cross-device link

Solution: Save the temp css file in the same directory as the real css file.
The temp file has the name PID.css so it will not conflict with any other file
name (see cssclean.c).

2. csscompress: no lock file is written. Is that needed

3. cssclean: lock file is in wrong directory:
open("/var/spool/dspam/data/local/data/local/dirk/dirk.lock",
O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/var/spool/dspam/data/local/dirk/dirk.css", O_RDWR) = 4

4. cssclean: File permissions of *.css files are wrong after usage:
-rw-r--r-- 1 root root  4837344  8. Dez 08:44 dirk.css

Before running cssclean it was: -rw-rw---- 1 dirk dspam

5. cssclean re-initializes the header counters thus causing dspam to return to
training mode even though there is a good history remaining. 
dirk
    TP:     0 TN:     0 FP:     0 FN:     0 SC:     0 NC:     0

Solution: 
> filepos += sizeof(struct _hash_drv_header); 
> } 
> + bcopy (old.header, new.header, sizeof(struct _hash_drv_header)); 
> _ hash_drv_close(&new);


Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Jakub Moc (RETIRED) 2007-12-08 09:15:08 0000 -------

*** This bug has been marked as a duplicate of bug 201656 ***

First Last Prev Next    No search results available      Search page      Enter new bug