Paul,

On 9/9/23 04:21, Paul Eggert wrote:
You added lchown but removed chown? Not sure that's an improvement.

No, I moved the original sys_chown from #16 to #182 (and changed it to follow symlinks), and then I created the new sys_lchown in #16 that do not follow symlinks.



Anyway, just for fun I wrote the attached patch. Does it fix the original problem for you? I have not installed it into Gnulib because I lack easy access to oddball operating systems that have that particular chown bug.

No, I tested the patch and it did not work. That also helped me to take the decision to add support for lchown. :-)

Keep in mind that the problem appears only if you are trying to chown or chmod a device file that is not recognized by the kernel. (i.e: a floppy drive you don't have, a ram disk drive number not supported, etc.).

I can try to reproduce again the situation and provide a working patch if you really want it.

Just let me know.
Regards.

--
Jordi Sanfeliu
FIBRANET Network Services Provider
https://www.fibranet.cat

Reply via email to