Comment 19 for bug 60448

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: SRU Proposal: Limit .xsession-errors file size to prevent disk space DoS

On Wed, Nov 01, 2006 at 08:41:29AM +0100, Martin Pitt wrote:
> Hi,
>
> Matt Zimmerman [2006-10-31 10:30 -0800]:
> > Wouldn't it be simpler and cleaner to rotate the file to .old or such,
> > rather than attempting to rotate the data within the file?
>
> Neither Tollef nor I liked the .old idea, home directories are already
> cluttered enough; and if the file already exists, we cannot really
> decide whether the user copied it there or whether we can overwrite
> it. OTOH Tollef didn't like to have it completely purged on session
> start (what gdm does), so we agreed to this compromise.

There's plenty of precedent for rotating files this way in home directories,
using both ~ and .old. Simplicity and robustness are much more important
than an extra (hidden) file in the user's home directory. If the user
copied it to such a name, it was very likely for the same reason that we
would do so, and very unlikely that it was intended to preserve it forever.

--
 - mdz