$NetBSD: patch-ad,v 1.3 2007/10/28 13:40:47 adrianp Exp $

--- hobbitd/hobbitd.c.orig	2005-01-22 08:54:48.000000000 +0000
+++ hobbitd/hobbitd.c
@@ -1460,7 +1460,7 @@ void do_message(conn_t *msg, char *origi
 		MEMDEFINE(conffn);
 
 		if ( (sscanf(msg->buf, "config %1023s", conffn) == 1) &&
-		     (strstr("../", conffn) == NULL) && (get_config(conffn, msg) == 0) ) {
+		     (strstr(conffn, "../") == NULL) && (get_config(conffn, msg) == 0) ) {
 			msg->doingwhat = RESPONDING;
 			msg->bufp = msg->buf;
 		}
