Re: copy-file without preserving the owner

2024-08-24 Thread Bruno Haible
Hello Patrice, > > * In most cases, the copy of a file should have the same confidentiality > > restrictions as the original file. A copy that assigns a new owner and > > group usually is a confidentiality risk, no? > > If a user has the possibility ro read a file and to write it in a >

Re: copy-file without preserving the owner

2024-08-24 Thread Patrice Dumas
On Fri, Aug 23, 2024 at 11:56:06PM +0200, Bruno Haible wrote: > Hi Patrice, > > > For some code in Texinfo (not public yet), I needed to copy a file. I > > used the copy-file Gnulib module code, but I did not want to preserve > > the owner and group as it is better in my case if the file owner is

Re: copy-file without preserving the owner

2024-08-23 Thread Bruno Haible
Hi Patrice, > For some code in Texinfo (not public yet), I needed to copy a file. I > used the copy-file Gnulib module code, but I did not want to preserve > the owner and group as it is better in my case if the file owner is the > same as the generated output files owner. So I modified the cod