Re: endless copy of symlinks and wrong permissions

Mark Burgess <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Thanks Enrico. I'll check this out.

Enrico Scholz wrote:
> Mark Burgess <[email protected]> writes:
> 
>> It has been too long to recall what this problem was about. Can you
>> remind me how this started? I am also not quite sure what you are
>> saying works and what doesn't in 2.2.7
> 
> Thread starts at
> 
>     http://article.gmane.org/gmane.comp.sysutils.cfengine.bugs/2203
> 
> It affects 2.2.3 and 2.2.7 (at least). I think, this issue can be fixed
> by
> 
> --- cfengine-2.2.7/src/cfservd.c.~1~    2008-05-08 08:35:29.000000000 +0200
> +++ cfengine-2.2.7/src/cfservd.c        2008-06-29 14:53:59.000000000 +0200
> @@ -2662,6 +2662,7 @@ Debug("Getting size of link deref %s\n",
>  if (islink && (stat(filename,&statlinkbuf) != -1)) /* linktype=copy used by agent */
>     {
>     statbuf.st_size = statlinkbuf.st_size;
> +   statbuf.st_mode = statlinkbuf.st_mode;
>     }
>  
>  if (S_ISDIR(statbuf.st_mode))
> 
> 
> 
> Perhaps other attributes (st_uid, st_gid, st_.time) should be copied
> too.
> 
> 
> 
> Enrico

-- 


Mark Burgess

Web: http://www.iu.hio.no/~mark
Tlf: +47 22453272
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.