mirror of
https://github.com/0intro/wmii
synced 2024-11-23 06:11:21 +03:00
made /ws/tag read-only
This commit is contained in:
parent
0d333433ab
commit
ff6040856c
@ -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] != '#')
|
||||
|
Loading…
Reference in New Issue
Block a user