File: 0002-Use-etc-sasldb2-instead-of-.-sasldb-in-the-testsuite.patch

package info (click to toggle)
cyrus-sasl2 2.1.28%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,852 kB
  • sloc: ansic: 48,152; sh: 5,197; xml: 1,494; makefile: 742; python: 334; perl: 188
file content (35 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Forwarded: not-needed
From: Debian Cyrus SASL Team
 <pkg-cyrus-sasl2-debian-devel@lists.alioth.debian.org>
Date: Thu, 24 Mar 2016 11:35:03 +0100
Subject: Use /etc/sasldb2 instead of ./sasldb in the testsuite

---
 utils/testsuite.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/testsuite.c b/utils/testsuite.c
index 12da7f7..9b2a6a7 100644
--- a/utils/testsuite.c
+++ b/utils/testsuite.c
@@ -461,9 +461,9 @@ int good_getopt(void *context __attribute__((unused)),
 	    *len = (unsigned) strlen("sasldb");
 	return SASL_OK;
     } else if (!strcmp(option, "sasldb_path")) {
-	*result = "./sasldb";
+	*result = "/etc/sasldb2";
 	if (len)
-	    *len = (unsigned) strlen("./sasldb");
+	    *len = (unsigned) strlen("/etc/sasldb2");
 	return SASL_OK;
     } else if (!strcmp(option, "canon_user_plugin")) {
 	*result = cu_plugin;
@@ -2925,7 +2925,7 @@ void notes(void)
 void usage(void)
 {
     printf("Usage:\n" \
-           " testsuite [-g name] [-s seed] [-r tests] -a -M\n" \
+           " sasltestsuite [-g name] [-s seed] [-r tests] -a -M\n" \
            "    g -- gssapi service name to use (default: host)\n" \
 	   "    r -- # of random tests to do (default: 25)\n" \
 	   "    a -- do all corruption tests (and ignores random ones unless -r specified)\n" \