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

2025-06-25 Thread Richard Weinberger
On Donnerstag, 26. Juni 2025 08:45 Phi Debian wrote: > That's true that the bash shell-init: could be omitted and defered until > one ask for pwd explicitly. > > I don't see any *ino* jazz here, but the classic, my current dir has been > removed under my feet. > > I may have mis-read the *ino* pa

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

2025-06-25 Thread Richard Weinberger
On Mittwoch, 25. Juni 2025 21:28 Oğuz wrote: > On Wednesday, June 25, 2025, Richard Weinberger > 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

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

2025-06-25 Thread Richard Weinberger
Hello Oğuz, On Mittwoch, 25. Juni 2025 20:07 Oğuz wrote: > On Wednesday, June 25, 2025, Richard Weinberger > wrote: > > > > This can happen on filesystems where d_ino != st_ino > > > i.e. a broken filesystem. What does any of this have to do with bash? Bas

getcwd() returns with stale errno value upon error

2025-06-25 Thread Richard Weinberger
Configuration Information [Automatically generated, do not change][RW: The configuration info generated by bashbug is useless, as it is a cross build]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux foxxylove 6.4.0-150600.23.47-default #1 SMP PREEMPT_DYN