bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy-file without preserving the owner


From: Patrice Dumas
Subject: copy-file without preserving the owner
Date: Fri, 23 Aug 2024 19:47:51 +0200

Hello,

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 code not to
keep the owner.  The attached diff show the differences (I also comment
out copy_file_preserving and the associated gettext include as I do not
have a use for this variant, but it is not the important information).

I have no problem tracking the change in gnulib and updating the code.
However I thought that you may still be interested to know about my use
case in case it motivates you to add some flexibility on what is kept in
the copy_file function, or with a different function.

PS: this does not necessarily require a response, but in case, I am not
subscribed.

-- 
Pat

Attachment: copy-file.c-no_owner.diff
Description: Text Data

Attachment: copy-file.h-no_owner.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]