Closed thiagostahlschmidt closed 5 years ago
I remember looking into this a long time ago. One of the main (only?) reasons fdupes fails to compile on macOS is this statement, because there stdin
isn't an assignable lvalue. It seems this incorrect usage is also a common mistake. See this SO answer for details: https://stackoverflow.com/a/586416
freopen() is attempting to assign its result to stdin, which is not guaranteed to be assignable: "error: assignment of read-only variable 'stdin'"