sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit b2707a7b7c9e064b9626bd90fe14b12a2d2a9743
parent 362cbb44aec422abe255e475830404a723e0ccd3
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Thu, 18 Aug 2011 20:44:37 +0200

Does not save nonexisting files as executables by default.
Diffstat:
sandy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandy.c b/sandy.c @@ -1438,7 +1438,7 @@ i_writefile(char *fname) { bool wok=TRUE; Line *l; - if (fname != NULL && (fd = open(fname, O_WRONLY|O_TRUNC|O_CREAT, S_IRWXU|S_IRWXG|S_IRWXO)) == -1) { + if (fname != NULL && (fd = open(fname, O_WRONLY|O_TRUNC|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) == -1) { /* error */ tmptitle="WARNING! Can't save file!!!"; return FALSE;