summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--helpers/mknod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/mknod.c b/helpers/mknod.c
index 10b0e1b..820dd31 100644
--- a/helpers/mknod.c
+++ b/helpers/mknod.c
@@ -166,7 +166,7 @@ main(int argc, char *argv[])
return EXIT_FAILURE;
}
- mode = 0;
+ mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
#ifdef HAVE_GETOPT_LONG
while ((opt = getopt_long(argc, argv, _OPTSTRING, _LONGOPTS, NULL))
!= -1) {