aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.c b/bb.c
index 6596a71..16c507e 100644
--- a/bb.c
+++ b/bb.c
@@ -1387,7 +1387,7 @@ int main(int argc, char *argv[])
initial_path = ".";
goto has_initial_path;
}
- cmdfd = open(parent_bbcmd, O_RDWR | O_APPEND);
+ cmdfd = open(parent_bbcmd, O_WRONLY | O_APPEND | O_CREAT, 0644);
if (cmdfd == -1) err("Couldn't open cmdfile: '%s'\n", parent_bbcmd);
}