﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
145	coreutils: sort fails to close stdin if linked with OpenSSL	dmik		"If you try to exec a piped sort call (e.g. `execlp(""sh.exe"", ""sh.exe"", ""-c"", ""sort | cat"")`) in a process whose STDIN is a socketpair's handle (i.e. was redirected to a pipe), then it will spit out the following error right before termination when it tries to `fclose(stdin)`:
{{{
sort: close failed: -: Bad file number
}}}

The strange thing is that this failure only happens if sort.exe is built against OpenSSL (-lcrypto) to get fast MD5 calculation. If OpenSSL is disabled in the coreutils build (so that a slower fallback MD5 code is used), all works fine, even with socketpair etc."	defect	closed	minor		coreutils		low	fixed		
