summaryrefslogtreecommitdiff
path: root/devel/libmm/patches/patch-aa
blob: 2e33d95cbaf7c6a56bb07ba56f9c6245b2e98164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-aa,v 1.1 2008/02/14 06:19:38 bjs Exp $

Fix sanity check in MM_permission (from OSSP CVS).

--- mm_global.c.orig	2006-08-10 14:59:54.000000000 -0400
+++ mm_global.c
@@ -61,7 +61,7 @@ int MM_create(size_t size, const char *f
 
 int MM_permission(mode_t mode, uid_t owner, gid_t group)
 {
-    if (mm_global != NULL)
+    if (mm_global == NULL)
         return -1;
     return mm_permission(mm_global, mode, owner, group);
 }