Re: filedescriptor leakage, potential crash

2025-02-10 Thread Chet Ramey
On 2/7/25 9:47 PM, Martin D Kealey wrote: Funny the bugs one finds when reading the source code to a program... I was looking at the usage of INPUT_REDIRECT and TRANSLATE_REDIRECT in execute_null_command() and thought “why compare against 8 values, when by re-ordering enum r_instruction in comman

Re: filedescriptor leakage, potential crash

2025-02-07 Thread Martin D Kealey
On Sat, 8 Feb 2025 at 13:04, Oğuz wrote: > On Saturday, February 8, 2025, Martin D Kealey > wrote: >> >> ls -mU /proc/$$/fd >> ls -log /proc/$$/fd/99 >> > > They should appear in the output of `ls -l /proc/self/fd' in order for it > to be considered leakage > Oh gosh, I'm so glad you've corre

Re: filedescriptor leakage, potential crash

2025-02-07 Thread Oğuz
On Saturday, February 8, 2025, Martin D Kealey wrote: > > ls -mU /proc/$$/fd > ls -log /proc/$$/fd/99 > They should appear in the output of `ls -l /proc/self/fd' in order for it to be considered leakage -- Oğuz