[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-zile] Zile always changes file's mode on saving?
From: |
Reuben Thomas |
Subject: |
Re: [Bug-zile] Zile always changes file's mode on saving? |
Date: |
Sun, 1 Feb 2009 01:00:05 +0000 (GMT) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Sat, 31 Jan 2009, J.B. Nicholson-Owens wrote:
Does zile always set the mode of the file it is editing when saving the
file?
No; in fact, it never does unless the file does not already exist.
I'm at a loss to explain what else would have changed the mode of this file
in the above sequence.
Me too. I can't reproduce this problem: when I edit and save a file, it
retains the permissions it had before editing, regardless of what those
permissions are.
(Backup settings don't matter, as if backups are configured, the original
file is copied, not moved, so it doesn't affect what happens when the new
version is written.)
What version of Zile are you running? Is it patched? (If it's supplied by
Fedora, you should file a bug in their bug tracking system rather than
contacting the Zile maintainers directly.)
The only other thing I can think of that might affect things is the file
system you're using, if it's buggy.
The way that Zile writes a file when it is saved is to open it calling
"creat" (or rather, calling open with the access modes O_CREAT | O_WRONLY |
O_TRUNC, which is the same thing) with mode set to 0666. The mode is only
used if the file does not already exist, so it shouldn't matter in this
case.
--
http://rrt.sc3d.org/ | Floc: an egregiously good aperitif