mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-12 01:11:27 +02:00
fix the cap.c patch
This commit is contained in:
parent
93dd3e0540
commit
8fce24dc4f
2 changed files with 7 additions and 3 deletions
|
@ -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>
|
2009-03-03 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 26680: Src/Modules/cap.c: missed some stuff that needed metafied
|
* 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
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4597 $
|
* $Revision: 1.4598 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -73,7 +73,6 @@ bin_getcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
||||||
char *result = NULL;
|
char *result = NULL;
|
||||||
ssize_t length;
|
ssize_t length;
|
||||||
cap_t caps;
|
cap_t caps;
|
||||||
char *filename;
|
|
||||||
|
|
||||||
caps = cap_get_file(unmetafy(dupstring(*argv), NULL));
|
caps = cap_get_file(unmetafy(dupstring(*argv), NULL));
|
||||||
if(caps)
|
if(caps)
|
||||||
|
@ -102,7 +101,7 @@ bin_setcap(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
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);
|
zwarnnam(nam, "%s: %e", *argv, errno);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue