News for hackers. Stuff that matters.
Re:Why would you still want to use strace in 2023? [video] by pixl97 on Monday January 08, 2024 @12:21PM (#38915146)
And if it's the initial configuration file?
Re:Why would you still want to use strace in 2023? [video] by lelanthran on Monday January 08, 2024 @12:54PM (#38915578)
> And if it's the initial configuration file?

You're still going to have to open it and handle the errors (in case it's the wrong permissions, or the filename is a directory, etc).

Checking if it exists doesn't make the subsequent code any easier or shorter - you still have to check for errors even if it exists.