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: acl, copy-file: First step towards more consistent function names

2024-08-24 Thread Collin Funk
Hi Bruno, Bruno Haible writes: > In the name of consistency of the API, I'd like to migrate 'acl' and > 'copy-file' > to the common conventions: In a first step > qcopy_acl — xcopy_acl > > and then later (in a year or two): > copy_acl — xcopy_acl > > At some point, we can then also rename t

acl, copy-file: First step towards more consistent function names

2024-08-24 Thread Bruno Haible
In most Gnulib modules, when we have a function that does something and another function that does the same thing with diagnostics, the common convention is that the latter has an 'x' prefix. Such as for malloc — xalloc vasprintf — xvasprintf getcwd — xgetcwd striconv — xstriconv etc. Th

Re: [PATCH] diffseq: port to clang 18.1.6 in ‘patch’

2024-08-24 Thread Bruno Haible
Hi Paul, > -#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) > +#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) && !__clang__ Why is this needed? clang 18 still masquerades as a GCC 4.2.1 compatible compiler: $ : | clang -E -dM - | grep __GNUC_ #define __GNUC_MINOR__ 2 #define __GNUC_PATCHLEVEL__ 1 #define _

[PATCH] diffseq: port to clang 18.1.6 in ‘patch’

2024-08-24 Thread Paul Eggert
* lib/diffseq.h: Omit the pragmas if __clang__. --- ChangeLog | 5 + lib/diffseq.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c9e76d63d..29c02f5478 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-08-24 Paul Eggert +

relocatable-prog: Add support for 32-bit build on FreeBSD/powerpc64

2024-08-24 Thread Bruno Haible
FreeBSD/powerpc64 is a bi-arch platform, and in 32-bit mode a different environment variable needs to be used instead of LD_LIBRARY_PATH. For details, see . This patch updates the 'relocatable-prog' module accordingly. 2024-08-24 Bruno Haible re

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