[Pkg-shadow-commits] r2767 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Thu Apr 23 11:17:22 UTC 2009
Author: nekral-guest
Date: 2009-04-23 11:17:22 +0000 (Thu, 23 Apr 2009)
New Revision: 2767
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/newgrp.c
Log:
* src/newgrp.c: Added assertion to guide splint (and me).
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-23 11:16:38 UTC (rev 2766)
+++ upstream/trunk/ChangeLog 2009-04-23 11:17:22 UTC (rev 2767)
@@ -1,5 +1,9 @@
2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+ * src/newgrp.c: Added assertion to guide splint (and me).
+
+2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/find_new_gid.c: Use booleans instead of char fo
used_gids.
* libmisc/find_new_gid.c: Use getdef_ulong and cast to git_t to
Modified: upstream/trunk/src/newgrp.c
===================================================================
--- upstream/trunk/src/newgrp.c 2009-04-23 11:16:38 UTC (rev 2766)
+++ upstream/trunk/src/newgrp.c 2009-04-23 11:17:22 UTC (rev 2767)
@@ -38,6 +38,7 @@
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
+#include <assert.h>
#include "defines.h"
#include "getdef.h"
#include "prototypes.h"
@@ -619,6 +620,7 @@
* Re-read the group entry for further processing.
*/
grp = xgetgrnam (group);
+ assert (NULL != grp);
}
#ifdef SHADOWGRP
sgrp = getsgnam (group);
More information about the Pkg-shadow-commits
mailing list