summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2010-12-31 23:24:50 +0100
committerAndreas Beckmann <anbe@debian.org>2013-09-13 07:15:03 +0200
commitf6357b57ccd8473b2bef48faddc08c98b9b31338 (patch)
treede7e1df2774ca221e8478cade6c7132a7b747d41
parent5416958893006b5aa87461780c83ee9bf3d3360d (diff)
downloadsendmail-f6357b57ccd8473b2bef48faddc08c98b9b31338.tar.gz
fix FTBFS on HURD
-rw-r--r--debian/changelog1
-rw-r--r--debian/sensible_mda/sensible-mda.c.in6
2 files changed, 3 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 8286f5f..fcf47bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ sendmail (8.14.4-4.1) UNRELEASED; urgency=low
(Closes: #692047)
* Raise MAXDAEMONS from 10 to 64, thanks to Kees Cook. (Closes: #720435)
* Enable all hardening flags, thanks to Simon Ruderich. (Closes: #687708)
+ * Fix FTBFS on HURD, thanks to Samuel Thibault. (Closes: #608525)
-- Andreas Beckmann <anbe@debian.org> Fri, 13 Sep 2013 05:46:00 +0200
diff --git a/debian/sensible_mda/sensible-mda.c.in b/debian/sensible_mda/sensible-mda.c.in
index d23d243..1906eed 100644
--- a/debian/sensible_mda/sensible-mda.c.in
+++ b/debian/sensible_mda/sensible-mda.c.in
@@ -59,7 +59,7 @@ static const char id[] = "@(#)$Id: sensible-mda.c,v @sm_version@ @sm_date@ @sm_t
static void help(void);
static int drop_privs(char *, uid_t, gid_t);
static void show_privs(void);
-static unsigned char program[PATH_MAX];
+static unsigned char *program;
static uid_t RealUid, RunAsUid;
static gid_t RealGid, RunAsGid;
@@ -89,9 +89,7 @@ main (int argc, char *argv[]) {
str_pos++;
else
str_pos = argv[0];
- (void) strncpy(program, str_pos,
- min(strlen(str_pos), sizeof(program)-1));
- program[sizeof(program)-1] = '\0';
+ program = strdup(str_pos);
#if DEBUG
str_len = 0;