[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#574645: freebsd-utils: swapon segfaults on kfreebsd-amd64

> Running it with no argument at all, I also get a segfault. It looks
> like the getprogname() call is the culprit. [My crash is at
> swapon.c:215, which like swapon.c:160 uses a getprogname() call.]
> That's a bit strange, since setprogname() gets called with argv[0] at
> the beginning of main(), see debian/patches/016_swapon.diff

There is only 8.0-8 in unstable, may be just upload by a DD is missing ?
Aurelien added the missing includes with needed prototypes in r2971 on Jan 31.

freebsd-utils (8.0-9) UNRELEASED; urgency=low

  * Add /etc/pf.os to freebsd-net-tools
  * Add a vidcontrol package containing the executable, the font maps
    and the screen maps. Closes: bug#544083.
  * Update patches/016_swapon.diff to fix segfault on kfreebsd-amd64.

 -- Aurelien Jarno <aurel32@debian.org>  Sun, 31 Jan 2010 15:58:29 +0100

svn diff -r2970 freebsd-utils/debian/patches/016_swapon.diff

+@@ -51,7 +52,9 @@
+ #include <fstab.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <bsd/stdlib.h>
+ #include <string.h>
++#include <bsd/string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <libutil.h>

Reply to: