aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-31 00:25:32 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-31 00:25:32 -0700
commitf78a4d591d2a6e0f0d172086f9e95290903ccb88 (patch)
tree4e1351d7fcb0860c2812c787554288acd9eeb6ad /bb.c
parent73b0f6efb6cdabb4b5dd431947628d40bf49316e (diff)
Added permission flags for created bb cmdfile
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);
}