$OpenBSD: patch-gnome-session_main_c,v 1.22 2017/11/10 17:29:58 ajacoutot Exp $

From fa8de58ba96ab930baa1b8036b56a938f08c1b0e Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Fri, 10 Nov 2017 17:10:59 +0100
Subject: Don't use rpmatch(3)

Index: gnome-session/main.c
--- gnome-session/main.c.orig
+++ gnome-session/main.c
@@ -309,7 +309,7 @@ main (int argc, char **argv)
 
         debug_string = g_getenv ("GNOME_SESSION_DEBUG");
         if (debug_string != NULL) {
-                debug = rpmatch (debug_string) == TRUE || atoi (debug_string) == 1;
+                debug = atoi (debug_string) == 1;
         }
 
         error = NULL;
