Re: [hackers] [sbase] touch(1) permissions correction

2016-09-01 Thread Martin Kühne
666... for satan! cheers! mar77i

Re: [hackers] [sbase] touch(1) permissions correction

2016-09-01 Thread Ali H. Fardan
[2016-09-01 19:28] [#suckless] Raiz: 0666 is correct for touch, it is bitwise-anded with umask. see open(2), or test with those other utilities, or look at their code [2016-09-01 19:30] [#suckless] looks like I'm the one introducing bugs rather than fixing them sorry for inconvenience. On

[hackers] [sbase] touch(1) permissions correction

2016-09-01 Thread Ali H. Fardan
from a security prespective, touch should not allow everyone to have write permissions to the file, if someones needs such a permission, chmod(1) can be used later. I have tried touch(1) from coreutils and OpenBSD, both set the default permissions to 644. Raiz diff --git a/touch.c b/touch.c