commit b8e17113d086ef9a325d54be86769887c194a771
parent d3e24f818e57643348175aaeb510ed2fa954860f
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Mon, 29 May 2006 14:19:20 +0200
trim / from tags
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c
@@ -1370,7 +1370,7 @@ xwrite(IXPConn *c, Fcall *fcall)
return Ebadvalue;
memcpy(buf, fcall->data, fcall->count);
buf[fcall->count] = 0;
- cext_trim(buf, " \t");
+ cext_trim(buf, " \t/");
if(!permit_tags(buf))
return Ebadvalue;
if(dir_type == FsDclient)
diff --git a/cmd/wm/rule.c b/cmd/wm/rule.c
@@ -49,8 +49,7 @@ vector_of_props(PropVector *pv)
Bool
permit_tags(const char *tags)
{
- static char *exclude[]
- = { "bar", "client", "ctl", "def", "event", "view" };
+ static char *exclude[] = { "sel", "status" };
char buf[256];
char *toks[16];
unsigned int i, j, n;
@@ -111,7 +110,7 @@ update_rules()
case TAGS:
if(*p == '\n' || *(p + 1) == 0) {
*t = 0;
- cext_trim(tags, " \t");
+ cext_trim(tags, " \t/");
if(permit_tags(tags)) {
Rule *rul = cext_emallocz(sizeof(Rule));
rul->is_valid = !regcomp(&rul->regex, regex, 0);