Avoid doing double work with the possibility of a race. rename() does all the necessary checks all by itself already, no need to also call stat.
Avoid doing double work with the possibility of a race.
rename() does all the necessary checks all by itself already, no need
to also call stat.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb