bug-gawk
[Top][All Lists]
Advanced

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

Re: awk inplace overrides symlinks


From: Eli Zaretskii
Subject: Re: awk inplace overrides symlinks
Date: Fri, 09 Feb 2024 16:21:29 +0200

> Date: Fri, 9 Feb 2024 08:48:08 -0500
> From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
> Cc: arnold@skeeve.com, avidseeker7@protonmail.com, bug-gawk@gnu.org
> 
> On Fri, Feb 09, 2024 at 01:46:21PM +0200, Eli Zaretskii wrote:
> > > From: arnold@skeeve.com
> > > Date: Fri, 09 Feb 2024 01:45:18 -0700
> > > Cc: bug-gawk@gnu.org
> > > 
> > > Andy, I think using lstat() and fataling on symlink is fine.
> > 
> > Please also make sure the new code does TRT on platforms which don't
> > define HAVE_LSTAT in their config.h.
> > 
> 
> Hmmm. How about realpath? Is that universally supported?

No.  It could be emulated, though.

But why would realpath be needed in the !HAVE_LSTAT case?  In that
case no file is ever a symlink, so the code which caters for symlinks
should not be used on such platforms.



reply via email to

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