about summary refs log tree commit diff
path: root/Src/Modules/cap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/cap.c')
-rw-r--r--Src/Modules/cap.c3
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;