From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: 3.1.6-pws-2: cap_free
Date: Wed, 01 Sep 1999 10:00:07 +0200 [thread overview]
Message-ID: <9909010800.AA16059@ibmth.df.unipi.it> (raw)
I've finally compiled on a system with POSIX capability sets. This one
definitely needs cap_free to get the value returned from cap_get_proc, not
a pointer to it. If there are implementations which do this the other way,
we have problems.
You can test this if you also have --enable-zsh-mem --enable-zsh-mem-debug,
because you get a bad free warning from e.g. `print -P "%#"'.
--- Src/utils.c.cap Mon Aug 2 09:24:34 1999
+++ Src/utils.c Tue Aug 31 13:29:26 1999
@@ -3633,10 +3633,10 @@
for(n = 0; !cap_get_flag(caps, n, CAP_EFFECTIVE, &val); n++)
if(val ||
(!cap_get_flag(caps, n, CAP_INHERITABLE, &val) && val)) {
- cap_free(&caps);
+ cap_free(caps);
return 1;
}
- cap_free(&caps);
+ cap_free(caps);
}
}
#endif /* HAVE_CAP_GET_PROC */
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next reply other threads:[~1999-09-01 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-01 8:00 Peter Stephenson [this message]
1999-09-01 10:50 ` Zefram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9909010800.AA16059@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).