Use chmod() directly

This commit is contained in:
sin 2014-02-04 15:05:31 +00:00
parent bf2b270946
commit d7383490dc

View File

@ -54,7 +54,7 @@ main(int argc, char *argv[])
fclose(nfp);
fclose(fp);
}
if (fchmod(fileno(nfp), mode) < 0)
if (chmod(fname, mode) < 0)
eprintf("chmod %s:", fname);
return EXIT_SUCCESS;