mirror of
git://git.suckless.org/sbase
synced 2025-01-13 10:50:50 +00:00
Use chmod() directly
This commit is contained in:
parent
bf2b270946
commit
d7383490dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user