From f38e55984f6610a2fb6969e744148695df7a5735 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Wed, 29 Dec 2021 06:47:40 +0900 Subject: [PATCH] add filemode to open --- others/planck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/others/planck.c b/others/planck.c index 6013cf0..6a09cba 100644 --- a/others/planck.c +++ b/others/planck.c @@ -178,7 +178,7 @@ defbinary("%", sar, >>, intptr_t) defcode("(open)", openfile) { int flags = pop(); char *name = (char*) pop(); - int fd = open(name, flags); + int fd = open(name, flags, 0644); push(fd); next(); }