diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-03 17:46:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-03 17:46:50 +0000 |
commit | 731646656cf9809ee21b693abd2e98f3df46079c (patch) | |
tree | 9e9acd885f18b9c476790f551ce5ba74eb66e725 /Src | |
parent | 309708418b4a22791e03577b5dcd11c3a07a9886 (diff) | |
download | zsh-731646656cf9809ee21b693abd2e98f3df46079c.tar.gz zsh-731646656cf9809ee21b693abd2e98f3df46079c.tar.xz zsh-731646656cf9809ee21b693abd2e98f3df46079c.zip |
26677: cap module needs some unmetafy() calls
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/cap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Modules/cap.c b/Src/Modules/cap.c index 9d41a4e90..4242d447f 100644 --- a/Src/Modules/cap.c +++ b/Src/Modules/cap.c @@ -38,6 +38,7 @@ bin_cap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func)) int ret = 0; cap_t caps; if(*argv) { + unmetafy(*argv, NULL); caps = cap_from_text(*argv); if(!caps) { zwarnnam(nam, "invalid capability string"); @@ -90,6 +91,7 @@ bin_setcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func)) cap_t caps; int ret = 0; + unmetafy(*argv, NULL); caps = cap_from_text(*argv++); if(!caps) { zwarnnam(nam, "invalid capability string"); @@ -97,6 +99,7 @@ bin_setcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func)) } do { + unmetafy(*argv, NULL); if(cap_set_file(*argv, caps)) { zwarnnam(nam, "%s: %e", *argv, errno); ret = 1; |