Closed
Description
openedon Nov 19, 2016
- It checks if the source file is a regular file by path before opening it. The file could be replaced between checking and opening.
- It sets the permissions by path using
chmod
instead of by file descriptor usingfchmod
. It could therefore end up setting permissions on the wrong file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment