ref: b9b1f6c7c09d3294512caf822792ea268cd8a28a
parent: 0085f650ef3f481692b52c5389a3483421834998
author: Jacob Moody <moody@posixcafe.org>
date: Tue Aug 15 19:00:09 EDT 2023
devfs-posix: allow creation of files with exec bit set checked for consistency with u9fs
--- a/kern/devfs-posix.c
+++ b/kern/devfs-posix.c
@@ -234,7 +234,7 @@
int m = fsomode(omode & 3) | O_CREAT | O_TRUNC;
if(mode & OEXCL)
m |= O_EXCL;
- if((fd = open(path, m, uif->mode & perm & 0666)) < 0)
+ if((fd = open(path, m, uif->mode & perm & 0777)) < 0)
error(strerror(errno));
if(waserror()){
close(fd);