[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fdflags: fix -s with multiple flags, and multiple fd argumen
From: |
Chet Ramey |
Subject: |
Re: [PATCH] fdflags: fix -s with multiple flags, and multiple fd arguments |
Date: |
Tue, 14 Nov 2023 10:57:59 -0500 |
User-agent: |
Mozilla Thunderbird |
On 11/5/23 8:51 AM, Emanuele Torre wrote:
fdflags -s was re-parsing the setspec for each fd argument.
This is problematic because it is using strtok() to parse it
destructively.
So, only the first part of the setspec will be set for all file
descriptors; the other parts will only be set for the first file
descriptor:
Thanks for the report.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/