[syslog-ng] global option dir_group() didn't take effect

Balazs Scheidler bazsi at balabit.hu
Fri Jun 23 16:11:44 CEST 2006


On Wed, 2006-06-21 at 14:23 +0200, Wolfram Schlich wrote:
> * Balazs Scheidler <bazsi at balabit.hu> [2006-06-21 13:08]:
> > On Wed, 2006-06-21 at 00:01 +0200, Wolfram Schlich wrote:
> > > Syslog-NG (1.9.11) was configured with the global option dir_group(adm),
> > > but directories it created were root:root.
> > > Anyone else experiencing this?
> > 
> > There was a typo in the initialization code caused this. Here's the
> > patch:
> > 
> > --- orig/src/affile.c
> > +++ mod/src/affile.c
> > @@ -592,7 +592,7 @@ affile_dd_new(gchar *filename, guint32 f
> >    self->flags = flags;
> >    self->file_uid = self->file_gid = -1;
> >    self->file_perm = -1;
> > -  self->dir_uid = self->dir_uid = -1;
> > +  self->dir_uid = self->dir_gid = -1;
> >    self->dir_perm = -1;
> >    log_writer_options_defaults(&self->writer_options);
> >    if (strchr(filename, '$') == NULL)
> 
> Great, thanks :-)
> 
> Should I try syslog-ng-2.0rc1+20060621.tar.gz?

No, the fix could not be committed because of my lousy internet
connection. I've just committed it, so you should try tomorrow's
snapshot or apply the patch yourself.

-- 
Bazsi



More information about the syslog-ng mailing list