[chef] Re: Re: Re: Re: Re: Re: Re: Template resource: default value for mode attribute?


Chronological Thread 
  • From: Allan Wind < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Template resource: default value for mode attribute?
  • Date: Wed, 15 Jun 2011 10:38:06 -0400

On 2011-06-15 08:02:36, Brian Akins wrote:
> Does cp truncate the target file then write it?  I'd like to avoid that if
> possible.  Some daemons don't like that.

$ strace cp 1 2
...
open("1", O_RDONLY)                     = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1048576, ...}) = 0
open("2", O_WRONLY|O_TRUNC)             = 4


/Allan
-- 
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>



Archive powered by MHonArc 2.6.16.

§