made /ws/tag read-only

This commit is contained in:
Anselm R. Garbe 2006-03-22 20:09:22 +01:00
parent 0d333433ab
commit ff6040856c

View File

@ -552,8 +552,7 @@ type2stat(Stat *stat, char *wname, Qid *dir)
break;
case FsFtag:
if(dir_type == FsDws)
return mkstat(stat, dir, wname, strlen(def.tag), DMREAD | DMWRITE);
return mkstat(stat, dir, wname, 0, 0);
return mkstat(stat, dir, wname, strlen(def.tag), DMREAD);
break;
case FsFexpand:
return mkstat(stat, dir, wname, strlen(expand), DMREAD | DMWRITE);
@ -1309,10 +1308,6 @@ xwrite(IXPConn *c, Fcall *fcall)
label[i1]->data[len] = 0;
draw_bar();
break;
case FsFtag:
memcpy(def.tag, fcall->data, fcall->count);
def.tag[fcall->count] = 0;
break;
case FsFcolors:
if((i1 >= nlabel) || (fcall->count != 23)
|| (fcall->data[0] != '#') || (fcall->data[8] != '#')