]> git.ipfire.org Git - thirdparty/kmod.git/commit
static-nodes: do not open /dev/stdout explicitly
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 18 Feb 2025 21:40:40 +0000 (22:40 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 18 Feb 2025 21:57:37 +0000 (15:57 -0600)
commit1ae5179d4880344f4a0680eb15001003491082ef
tree4293d1b2a49f39772771c2499dc6f5417aa5eaf0
parent0f8a593c77fd3cc376f50ea553143cc5fe87cb38
static-nodes: do not open /dev/stdout explicitly

If no -o option is given, use stdout directly without opening
/dev/stdout manually. In a chroot environment, this could lead
to /dev/stdout creation as a regular file.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/283
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/static-nodes.c