Upgrade chmod-default.cpp