rootsh/rootsh-1.5.3_change_permissions.patch
Grooooot 26e362598a rootsh: Package init
Signed-off-by: Grooooot <isula@huawei.com>
2020-02-19 10:44:49 +08:00

14 lines
478 B
Diff

diff -Nur rootsh-1.5.3.orig/src/rootsh.c rootsh-1.5.3/src/rootsh.c
--- rootsh-1.5.3.orig/src/rootsh.c 2017-11-11 19:18:16.638430603 +0800
+++ rootsh-1.5.3/src/rootsh.c 2017-11-11 19:19:24.547425868 +0800
@@ -680,7 +680,7 @@
// Open the logfile
*/
if ((logFile = open(logFileName, O_RDWR|O_CREAT|O_SYNC|O_CREAT|O_APPEND|
- S_IRUSR|S_IWUSR, 0777)) == -1) {
+ S_IRUSR|S_IWUSR, 0666)) == -1) {
perror(logFileName);
return(0);
}