git: 9front

Download patch

ref: d62f40ce536270b4dd5e2754348b5f8e639282d9
parent: 43447ff04506c0b72faa21016fccc80614ff1d0f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Nov 1 12:34:33 EDT 2012

hjfs: fix group permissions for /adm and /adm/users for init

--- a/sys/src/cmd/hjfs/fs1.c
+++ b/sys/src/cmd/hjfs/fs1.c
@@ -140,7 +140,7 @@
 	if(ch == nil)
 		goto error;
 	ch->uid = -1;
-	chancreat(ch, "adm", DMDIR | 0755, OREAD);
+	chancreat(ch, "adm", DMDIR | 0775, OREAD);
 	chanclunk(ch);
 	ch = chanattach(fs, 0);
 	if(ch == nil)
@@ -151,7 +151,7 @@
 	if(chanwalk(ch, "users") > 0){
 		if(chanopen(ch, OWRITE|OTRUNC) <= 0)
 			goto error;
-	}else if(chancreat(ch, "users", 0644, OWRITE) <= 0)
+	}else if(chancreat(ch, "users", 0664, OWRITE) <= 0)
 			goto error;
 	if(userssave(fs, ch) < 0){
 		chanremove(ch);
--