cc should set executable perms on output

This commit is contained in:
Lisa Milne 2025-09-02 19:38:13 +10:00
parent aac0fd25af
commit 0cc4c192d2
2 changed files with 5 additions and 3 deletions

View file

@ -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) {

View file

@ -88,7 +88,7 @@ Options:
var done = false;
for (var i=0; i<line.length; i++) {
if (i == cursor_col) {
cursor_line_real = rows;
cursor_line_real += rows;
cursor_col_real = cl;
done = true;
}
@ -134,7 +134,7 @@ Options:
}
}
if (!done) {
cursor_line_real = rows;
cursor_line_real += rows;
cursor_col_real = cl;
}
curses.addstr(disp+'\n');