From fe2d8334bfa28ff05fa1a2ffe8555a19b41be0ea Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Wed, 19 Aug 2015 22:13:03 +0200 Subject: [PATCH] Don't use stdin as an lvalue freopen will always returns its last argument or 0. Therefore there is no need of the unportable pratice of assigning stdin a value. This fixes compilation with musl libc --- fdupes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdupes.c b/fdupes.c index d33d859..a691adb 100644 --- a/fdupes.c +++ b/fdupes.c @@ -1238,7 +1238,7 @@ int main(int argc, char **argv) { } else { - stdin = freopen("/dev/tty", "r", stdin); + freopen("/dev/tty", "r", stdin); deletefiles(files, 1, stdin); } }