[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setgroups
From: |
Paul Jarc |
Subject: |
Re: setgroups |
Date: |
Mon, 21 Apr 2003 12:20:43 -0400 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) |
I wrote:
> + result = setgroups (ngroups, groups);
> + free (groups);
> + if (result < 0)
> + SCM_SYSERROR;
Should errno be saved and restored here to avoid interference from
free()? The C standard says: "The value of errno may be set to
nonzero by a library function call whether or not there is an error,
provided the use of errno is not documented in the description of the
function in this International Standard.", and the description of
free() doesn't mention errno. But if we're already ignoring this
issue in the rest of the code, I won't bother. (Or I'll work on a
patch later to address as many instances of the problem as I can
find.)
paul