bug-coreutils
[Top][All Lists]
Advanced

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

bug#31332: touch unnecessarily calls dup2


From: Paul Eggert
Subject: bug#31332: touch unnecessarily calls dup2
Date: Mon, 29 Oct 2018 22:38:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

John Steele Scott wrote:
Prior tohttp://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=e373bb19  
fd_reopen() initially did "close(desired_fd); fd = open(...)" which would 
always do the right thing

No, as the old code did the wrong thing for "touch /dev/stdin", whereas the current code works.





reply via email to

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