* src/newgrp.c: Added assertion to guide splint (and me).
This commit is contained in:
parent
b0db85bc04
commit
77c1b2a369
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/newgrp.c: Added assertion to guide splint (and me).
|
||||||
|
|
||||||
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/find_new_gid.c: Use booleans instead of char fo
|
* libmisc/find_new_gid.c: Use booleans instead of char fo
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <assert.h>
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "getdef.h"
|
#include "getdef.h"
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
@ -619,6 +620,7 @@ int main (int argc, char **argv)
|
|||||||
* Re-read the group entry for further processing.
|
* Re-read the group entry for further processing.
|
||||||
*/
|
*/
|
||||||
grp = xgetgrnam (group);
|
grp = xgetgrnam (group);
|
||||||
|
assert (NULL != grp);
|
||||||
}
|
}
|
||||||
#ifdef SHADOWGRP
|
#ifdef SHADOWGRP
|
||||||
sgrp = getsgnam (group);
|
sgrp = getsgnam (group);
|
||||||
|
Loading…
Reference in New Issue
Block a user