summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Src/Modules/cap.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 62615a594..7036e8eab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-03  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* unposted: Src/Modules/cap.c: that's what happens when you
+	make patches for things that aren't supported on your system.
+
 2009-03-03  Peter Stephenson  <pws@csr.com>
 
 	* 26680: Src/Modules/cap.c: missed some stuff that needed metafied
@@ -11320,5 +11325,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4597 $                         
+* $Revision: 1.4598 $                         
 *****************************************************
diff --git a/Src/Modules/cap.c b/Src/Modules/cap.c
index aaf5e2433..0b7752027 100644
--- a/Src/Modules/cap.c
+++ b/Src/Modules/cap.c
@@ -73,7 +73,6 @@ bin_getcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
 	char *result = NULL;
 	ssize_t length;
 	cap_t caps;
-	char *filename;
 
 	caps = cap_get_file(unmetafy(dupstring(*argv), NULL));
 	if(caps)
@@ -102,7 +101,7 @@ bin_setcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
     }
 
     do {
-	if(cap_set_file(unmetafy(dupstring(*argv, NULL)), caps)) {
+	if(cap_set_file(unmetafy(dupstring(*argv), NULL), caps)) {
 	    zwarnnam(nam, "%s: %e", *argv, errno);
 	    ret = 1;
 	}