- Geert Hendrickx, 2006-08-01 10:10
On Tue, Aug 01, 2006 at 09:58:33AM +0200, Thomas Zajic wrote:
"Fixing" it with chmod() in line# 798 doesn't actually fix it, of course, because chmod(), as opposed to lstat(), affects the link target rather than the link itself.
Use chmod -h.
I'm not talking about fixing it from the command line (no need to, as the permissions are in fact correct), I'm talking about the chmod() call in the dovecot source (src/master/master-settings.c, line# 798). ;-)
BTW my (command line) chmod doesn't know a "-h" option, what's it supposed to do? Something with (not) following symlinks, I guess?
| [zlatko@disclosure]:~$ chmod -h | chmod: invalid option -- h | Try `chmod --help' for more information. | [zlatko@disclosure]:~$ chmod --version | head -1 | chmod (coreutils) 5.2.1
Thomas
=-------------------------------------------------------------------------=
- Thomas "ZlatkO" Zajic zlatko@gmx.at Linux-2.6.17 & Thunderbird-1.5 -
"It is not easy to cut through a human head with a hacksaw." (M. C.) -