]> git.pld-linux.org Git - packages/pwdutils.git/blame - pwdutils-format-security.patch
make is optional in pam, make it optional here as well
[packages/pwdutils.git] / pwdutils-format-security.patch
CommitLineData
f82dc29f
MB
1diff -urN pwdutils-3.2.19/lib/logging.c pwdutils-3.2.19.new/lib/logging.c
2--- pwdutils-3.2.19/lib/logging.c 2006-11-29 14:18:21.000000000 +0100
3+++ pwdutils-3.2.19.new/lib/logging.c 2013-02-04 20:18:24.415634693 +0100
4@@ -61,7 +61,7 @@
5 if (!handle)
6 {
7 err_msg = dlerror ();
8- syslog (LOG_ERR, err_msg);
9+ syslog (LOG_ERR, "%s", err_msg);
10 fprintf (stderr, _("Cannot open logging plugin:\n%s\n"),
11 err_msg);
12 return -1;
13@@ -77,7 +77,7 @@
14 new->sec_log_fnc = dlsym (handle, buf);
15 if ((err_msg = dlerror ()) != NULL)
16 {
17- syslog (LOG_ERR, err_msg);
18+ syslog (LOG_ERR, "%s", err_msg);
19 fprintf (stderr, _("Cannot find symbol `%s':\n%s\n"),
20 buf, err_msg);
21 dlclose (handle);
22@@ -95,7 +95,7 @@
23 new->open_sec_log_fnc = dlsym (handle, buf);
24 if ((err_msg = dlerror ()) != NULL)
25 {
26- syslog (LOG_ERR, err_msg);
27+ syslog (LOG_ERR, "%s", err_msg);
28 fprintf (stderr, _("Cannot find symbol `%s':\n%s\n"),
29 buf, err_msg);
30 dlclose (handle);
31diff -urN pwdutils-3.2.19/src/rpasswd-client.c pwdutils-3.2.19.new/src/rpasswd-client.c
32--- pwdutils-3.2.19/src/rpasswd-client.c 2011-02-01 16:22:44.000000000 +0100
33+++ pwdutils-3.2.19.new/src/rpasswd-client.c 2013-02-04 20:44:12.560581004 +0100
34@@ -948,7 +948,7 @@
35 *ctx = SSL_CTX_new (meth);
36 if (*ctx == NULL)
37 {
38- PRINTF (ERR_HANDLE, ERR_error_string (ERR_get_error (), NULL));
39+ PRINTF (ERR_HANDLE, "%s", ERR_error_string (ERR_get_error (), NULL));
40 return E_SSL_FAILURE;
41 }
42
43@@ -975,7 +975,7 @@
44 *ssl = SSL_new (*ctx);
45 if (*ssl == NULL)
46 {
47- PRINTF (ERR_HANDLE, ERR_error_string (ERR_get_error (), NULL));
48+ PRINTF (ERR_HANDLE, "%s", ERR_error_string (ERR_get_error (), NULL));
49 return E_SSL_FAILURE;
50 }
51 SSL_set_fd (*ssl, sock);
52diff -urN pwdutils-3.2.19/src/rpasswdd.c pwdutils-3.2.19.new/src/rpasswdd.c
53--- pwdutils-3.2.19/src/rpasswdd.c 2010-07-08 10:32:11.000000000 +0200
54+++ pwdutils-3.2.19.new/src/rpasswdd.c 2013-02-04 21:01:18.326860645 +0100
55@@ -770,7 +770,7 @@
56 if (asprintf (&cp, _("setresuid failed on server: %s"),
57 strerror (errno)) > 0)
58 {
59- dbg_log (cp);
60+ dbg_log ("%s", cp);
61 send_string (ssl, ERROR_MSG, cp);
62 free (cp);
63 }
64@@ -1143,7 +1143,7 @@
65
66 if (asprintf (&cp, "fork: %s", strerror (errno)) > 0)
67 {
68- dbg_log (cp);
69+ dbg_log ("%s", cp);
70 send_string (ssl, ERROR_MSG, cp);
71 free (cp);
72 #ifdef USE_GNUTLS
73@@ -1362,7 +1362,7 @@
74 ctx = SSL_CTX_new (meth);
75 if (!ctx)
76 {
77- dbg_log (ERR_error_string (ERR_get_error (), NULL));
78+ dbg_log ("%s", ERR_error_string (ERR_get_error (), NULL));
79 return E_SSL_FAILURE;
80 }
81
82@@ -1381,7 +1381,7 @@
83
84 if (!SSL_CTX_check_private_key (ctx))
85 {
86- dbg_log (ERR_error_string (ERR_get_error (), NULL));
87+ dbg_log ("%s", ERR_error_string (ERR_get_error (), NULL));
88 return E_SSL_FAILURE;
89 }
90 #endif
This page took 0.048973 seconds and 4 git commands to generate.