pkgsrc/sysutils/slocate/patches/patch-ae
wiz 28ba5384e7 Import slocate-3.1 as sysutils/slocate, packaged for wip by diro, Adam Hoka,
poppnk.

Secure locate provides a secure way to index and quickly search for files on
your system. It uses incremental encoding just like GNU locate to compress
its database to make searching faster, but it will also check file permissions
and ownership so that users will not see files they do not have access to.
2012-12-12 15:24:17 +00:00

23 lines
453 B
Text

$NetBSD: patch-ae,v 1.1 2012/12/12 15:24:17 wiz Exp $
Remove this block if FNM_CASEFOLD is not set.
--- src/utils.c.orig 2007-11-17 13:22:15.000000000 +0100
+++ src/utils.c
@@ -139,6 +139,7 @@ int match(struct g_data_s *g_data, char
ret = 1;
EXIT:
+#ifndef FNM_CASEFOLD
if (nocase_str)
free(nocase_str);
nocase_str = NULL;
@@ -147,7 +148,7 @@ EXIT:
free(nocase_path);
nocase_path = NULL;
-
+#endif
return ret;
}