bug-bash
[Top][All Lists]
Advanced

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

Re: getcwd() returns with stale errno value upon error


From: Richard Weinberger
Subject: Re: getcwd() returns with stale errno value upon error
Date: Wed, 25 Jun 2025 22:00:22 +0200

On Mittwoch, 25. Juni 2025 21:28 Oğuz wrote:
> On Wednesday, June 25, 2025, Richard Weinberger <richard@sigma-star.at>
> wrote:
> >
> > I'm not asking you to implement a workaround
> 
> 
> I'm just another user. I agree that a descriptive error message is better
> than a random one. But if your system can't return the same inode number
> for the same file from two standard functions, the random error message is
> the least of your problems.

OverlayFS works surprisingly well and the irregularities are documented:
https://docs.kernel.org/filesystems/overlayfs.html#inode-properties

Please note that the getcwd() fallback of Bash should never get activated
under normal conditions on Linux.
I've hit it only due to cross compiling issues, which is another story.

Thanks,
//richard

-- 
​​​​​sigma star gmbh | Eduard-Bodem-Gasse 6, 6020 Innsbruck, AUT UID/VAT Nr:
ATU 66964118 | FN: 374287y





reply via email to

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