builtin/apply: make create_one_file() return -1 on error