summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-07-05 17:04:52 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-07-05 17:04:52 (EDT)
commitde7cc76760a38e98d7a087305bcc214192256915 (patch)
treef3742e5782afe73108b12f8c228f573634c87882
parent557542ea042bf7c369b8e68321ad8cac6f849456 (diff)
mknod: Fix default 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) {