sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit d7383490dc982b332b0a6111a9e884638f58ac69
parent bf2b27094630a07b2d5d21d1cdd1b55a8ac1dd53
Author: sin <sin@2f30.org>
Date:   Tue,  4 Feb 2014 15:05:31 +0000

Use chmod() directly

Diffstat:
Muudecode.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uudecode.c b/uudecode.c @@ -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;