--- mksquashfs.c.orig	2017-11-17 09:14:32.276675957 +0000
+++ mksquashfs.c	2017-11-17 09:15:53.526677928 +0000
@@ -5731,7 +5731,7 @@
 	if(stat(argv[source + 1], &buf) == -1) {
 		if(errno == ENOENT) { /* Does not exist */
 			fd = open(argv[source + 1], O_CREAT | O_TRUNC | O_RDWR,
-				S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+				S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
 			if(fd == -1) {
 				perror("Could not create destination file");
 				exit(1);
