From 0cc4c192d2482e164568a24f823fd4d1abee4860 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Tue, 2 Sep 2025 19:38:13 +1000 Subject: [PATCH] cc should set executable perms on output --- clite/build.js | 4 +++- clite/vi.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/clite/build.js b/clite/build.js index fd4b957..c394d5d 100644 --- a/clite/build.js +++ b/clite/build.js @@ -80,6 +80,8 @@ Options: return false; } + stdio.fchmod(fd,clite.modestr('-rwxr-xr-x')); + stdio.close(fd); return true; @@ -102,7 +104,7 @@ Options: link = false; break; default: - stdio.fprintf(io.stderr,'unknown argument: -%c\n',argv[i][j]); + stdio.fprintf(io.stderr,'Error: Unknown argument: -%c\n',argv[i][j]); } } }else if (ofile === true) { diff --git a/clite/vi.js b/clite/vi.js index eb0ab05..ebfb803 100644 --- a/clite/vi.js +++ b/clite/vi.js @@ -88,7 +88,7 @@ Options: var done = false; for (var i=0; i