[cups.bugs] [MOD] STR #1651: Possible /dev/null corruption by log rotate

Martin Zielinski mz at seh.de
Tue May 2 05:04:36 PDT 2006


[STR New]

If a log file points to /dev/null, this device will sooner or later become
corrupted by cups.

The change of file permissions and ownership is prevented in
log.c - check_log_file() for all "/dev/..." logfiles.
The log rotation is not disabled.

As the file size is held internally "/dev/null" will be renamed to 
"/dev/null.O" and a new ordinary file "/dev/null" will be created, when
the assumed file size reaches MaxLogSize.

I suggest to add the "/dev/ - check" to the log rotation conditions.

This also regards the 1.2 versions.

Link: http://www.cups.org/str.php?L1651
Version: 1.1-current





More information about the cups-devel mailing list