Blame SOURCES/sendmail-8.14.4-sasl2-in-etc.patch
|
|
c866bb |
--- sendmail-8.14.4/sendmail/usersmtp.c 2009-06-17 18:26:51.000000000 +0100
|
|
|
c866bb |
+++ sendmail-8.14.4/sendmail/usersmtp.c 2010-06-11 13:13:52.150312505 +0100
|
|
|
c866bb |
@@ -1323,9 +1323,7 @@
|
|
|
c866bb |
{
|
|
|
c866bb |
long sff;
|
|
|
c866bb |
int r;
|
|
|
c866bb |
-#if SASL <= 10515
|
|
|
c866bb |
size_t len;
|
|
|
c866bb |
-#endif /* SASL <= 10515 */
|
|
|
c866bb |
char *p;
|
|
|
c866bb |
|
|
|
c866bb |
if (file == NULL || *file == '\0')
|
|
|
c866bb |
@@ -1361,9 +1359,16 @@
|
|
|
c866bb |
#endif /* SASL <= 10515 */
|
|
|
c866bb |
|
|
|
c866bb |
p = (char *) file;
|
|
|
c866bb |
+ len = strlen(p);
|
|
|
c866bb |
if ((r = safefile(p, RunAsUid, RunAsGid, RunAsUserName, sff,
|
|
|
c866bb |
S_IRUSR, NULL)) == 0)
|
|
|
c866bb |
return SASL_OK;
|
|
|
c866bb |
+#if SASL > 10515
|
|
|
c866bb |
+ /* Expect /usr/lib/sasl2/Sendmail.conf to be missing - config now in /etc/sasl2 */
|
|
|
c866bb |
+ if (type == SASL_VRFY_CONF && r == ENOENT &&
|
|
|
c866bb |
+ len >= 8 && strncmp(p, "/usr/lib", 8) == 0)
|
|
|
c866bb |
+ return SASL_CONTINUE;
|
|
|
c866bb |
+#endif /* SASL > 10515 */
|
|
|
c866bb |
if (LogLevel > (r != ENOENT ? 8 : 10))
|
|
|
c866bb |
sm_syslog(LOG_WARNING, NOQID, "error: safesasl(%s) failed: %s",
|
|
|
c866bb |
p, sm_errstring(r));
|