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

This commit is contained in:
cinap_lenrek 2012-11-01 16:34:33 +01:00
parent 4b2a1c104b
commit ce59d96ee3

View file

@ -140,7 +140,7 @@ writeusers(Fs *fs)
if(ch == nil) if(ch == nil)
goto error; goto error;
ch->uid = -1; ch->uid = -1;
chancreat(ch, "adm", DMDIR | 0755, OREAD); chancreat(ch, "adm", DMDIR | 0775, OREAD);
chanclunk(ch); chanclunk(ch);
ch = chanattach(fs, 0); ch = chanattach(fs, 0);
if(ch == nil) if(ch == nil)
@ -151,7 +151,7 @@ writeusers(Fs *fs)
if(chanwalk(ch, "users") > 0){ if(chanwalk(ch, "users") > 0){
if(chanopen(ch, OWRITE|OTRUNC) <= 0) if(chanopen(ch, OWRITE|OTRUNC) <= 0)
goto error; goto error;
}else if(chancreat(ch, "users", 0644, OWRITE) <= 0) }else if(chancreat(ch, "users", 0664, OWRITE) <= 0)
goto error; goto error;
if(userssave(fs, ch) < 0){ if(userssave(fs, ch) < 0){
chanremove(ch); chanremove(ch);