diff options
author | oga <oga> | 2008-03-22 15:09:45 +0000 |
---|---|---|
committer | oga <oga> | 2008-03-22 15:09:45 +0000 |
commit | 36c1aac90f7253ba173ebedf1ed76fb743c8f828 (patch) | |
tree | 8df4568b3453bab4b10fcd0f96d3d9bea2320650 /kbfunc.c | |
parent | cd46788d85428b539975d8923549bc282eb1b68d (diff) | |
download | cwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.tar.gz cwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.tar.xz cwm-36c1aac90f7253ba173ebedf1ed76fb743c8f828.zip |
Rip out, burn, and dance around the grave of group-edit mode.
I've yet to speak to anyone who uses it, so just kill it. You can still add/remove from groups using the mouse binding. Groups may get a re-work sometime soon if i have a stroke of genius. knocks about 4k off the i386 binary for me. ok okan@, todd@.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/kbfunc.c b/kbfunc.c index 049f56b..b71c8fd 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -320,17 +320,20 @@ kbfunc_exec(struct client_ctx *scratch, void *arg) if (stat(tpath, &sb) == -1) continue; /* may we execute this file? */ - if (euid == sb.st_uid) + if (euid == sb.st_uid) { if (sb.st_mode & S_IXUSR) goto executable; else continue; - for (j = 0; j < ngroups; j++) - if (mygroups[j] == sb.st_gid) + } + for (j = 0; j < ngroups; j++) { + if (mygroups[j] == sb.st_gid) { if (sb.st_mode & S_IXGRP) goto executable; else continue; + } + } if (sb.st_mode & S_IXOTH) goto executable; continue; @@ -448,21 +451,9 @@ kbfunc_client_delete(struct client_ctx *cc, void *arg) } void -kbfunc_client_groupselect(struct client_ctx *cc, void *arg) -{ - if (Groupmode) - group_done(); - else - group_enter(); -} - -void kbfunc_client_group(struct client_ctx *cc, void *arg) { - if (Groupmode) - group_select(KBTOGROUP((int)arg)); - else - group_hidetoggle(KBTOGROUP((int)arg)); + group_hidetoggle(KBTOGROUP((int)arg)); } void @@ -480,10 +471,7 @@ kbfunc_client_prevgroup(struct client_ctx *cc, void *arg) void kbfunc_client_nogroup(struct client_ctx *cc, void *arg) { - if (Groupmode) - group_deletecurrent(); - else - group_alltoggle(); + group_alltoggle(); } void |