race weakness #16
A race condition occurs within concurrent environments. It may be in the form of a function call, a small number of instructions, a series of program invocations and more.
This accepts filename arguments; if an attacker can move those files, a race condition results..
chown (new_filename, -1, st.st_gid);