[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dropping setuid/setgid privileges
From: |
Sam Steingold |
Subject: |
Re: dropping setuid/setgid privileges |
Date: |
Mon, 8 Jun 2009 23:40:18 -0400 |
On Mon, Jun 8, 2009 at 8:19 PM, Bruno Haible <address@hidden> wrote:
> Sam Steingold wrote:
>
>> I urge you to avoid abort in favor of returning an error code and
>> document that aborting on certain errors is the right behavior.
>
> If I did this, the risk that a bug does not get reported would be too
down with the nannies!
let us assume that I threw in the anti-totalitarian-programming
diatribe here. :-)
(I am too lazy to actually do it).
> high. For the average user, abort() is acceptable. (Note the module
> is not suitable for use in libraries.)
then it is not suitable for clisp either.
you could easily make it suitable for libraries too by returning an
exit code from the foo_low function and adding
int foo () {
if (foo_low() == NEED_ABORT) {
fprintf(stderr,"life sucks\n");
abort();
}}
or something.
--
Sam Steingold <http://sds.podval.org>
- Re: dropping setuid/setgid privileges, (continued)
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/11
- Re: dropping setuid/setgid privileges, Sergey Poznyakoff, 2009/06/11
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/11
- Re: dropping setuid/setgid privileges, James Youngman, 2009/06/11
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/11
- Re: dropping setuid/setgid privileges, James Youngman, 2009/06/12
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/12
Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/08
- Re: dropping setuid/setgid privileges, Sam Steingold, 2009/06/08
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/08
- Re: dropping setuid/setgid privileges,
Sam Steingold <=
- Re: dropping setuid/setgid privileges, James Youngman, 2009/06/09
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/09
- Re: dropping setuid/setgid privileges, Sam Steingold, 2009/06/09
- Re: dropping setuid/setgid privileges, Bruno Haible, 2009/06/09