]> git.ipfire.org Git - thirdparty/libbsd.git/commit
fpurge: Make it work with non fd based FILEs
authorDuncan Overbruck <mail@duncano.de>
Tue, 25 Jan 2022 19:32:30 +0000 (20:32 +0100)
committerGuillem Jover <guillem@hadrons.org>
Wed, 26 Jan 2022 03:42:09 +0000 (04:42 +0100)
commitba3c46b30fd45c8d2df310d89fd560c55a74eb4a
tree85f7284206f1aa58ea0b1d5d03d436d932c21ce4
parent091097e0626e5cd3ba5f83da47438c88977e88bc
fpurge: Make it work with non fd based FILEs

Streams opened with for example open_memstream(3) will have no associated
file descriptor, and fileno(3) will fail.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/fpurge.c