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

13 lines
490 B
Diff

diff -up rootsh-1.5.3/src/rootsh.c.BAD rootsh-1.5.3/src/rootsh.c
--- rootsh-1.5.3/src/rootsh.c.BAD 2008-05-14 16:38:30.000000000 -0400
+++ rootsh-1.5.3/src/rootsh.c 2008-05-14 16:38:37.000000000 -0400
@@ -680,7 +680,7 @@ int beginlogging(void) {
// Open the logfile
*/
if ((logFile = open(logFileName, O_RDWR|O_CREAT|O_SYNC|O_CREAT|O_APPEND|
- S_IRUSR|S_IWUSR)) == -1) {
+ S_IRUSR|S_IWUSR, 0777)) == -1) {
perror(logFileName);
return(0);
}