From: LaMont Jones Date: Sun, 8 Jul 2007 23:09:38 +0000 (-0600) Subject: v2.12r-20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413f8fc50af3f46bd6bbd9ff64c8db9880b6fd5f;p=util-linux v2.12r-20 --- diff --git a/debian/changelog b/debian/changelog index 0f2d75a6..126dfd2f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +util-linux (2.12r-20) unstable-UNRELEASED; urgency=low + + * USB unmounting dereferenced a null pointer. Closes: #410031 + - Files: 70fstab.dpatch + + -- LaMont Jones Sun, 17 Jun 2007 06:01:46 -0600 + util-linux (2.12r-19) unstable; urgency=low * mips/mipsel buildds use sudo. Fix install target so that mount.deb diff --git a/debian/patches/.10mount.dpatch.swp b/debian/patches/.10mount.dpatch.swp new file mode 100644 index 00000000..2a15d560 Binary files /dev/null and b/debian/patches/.10mount.dpatch.swp differ diff --git a/debian/patches/00list b/debian/patches/00list index ebf9130a..27e30e66 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -21,3 +21,4 @@ 60_opt_O1 65_llseek-syscall 65page_size +70fstab diff --git a/debian/patches/70fstab.dpatch b/debian/patches/70fstab.dpatch new file mode 100755 index 00000000..2fbc1f01 --- /dev/null +++ b/debian/patches/70fstab.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## fstab.c.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad util-linux-2.12r~/mount/fstab.c util-linux-2.12r/mount/fstab.c +--- util-linux-2.12r~/mount/fstab.c 2004-12-21 20:09:24.000000000 +0100 ++++ util-linux-2.12r/mount/fstab.c 2007-06-05 08:33:15.000000000 +0200 +@@ -293,12 +293,16 @@ + + static int + has_uuid(const char *device, const char *uuid){ +- const char *devuuid; ++ const char *devname; + int ret; + +- devuuid = mount_get_devname_by_uuid(device); +- ret = !strcmp(uuid, devuuid); +- /* free(devuuid); */ ++ devname = mount_get_devname_by_uuid(uuid); ++ /* mount_get_devname_by_uuid return 0 when not found */ ++ if (devname) ++ ret = !strcmp(device, devname); ++ else ++ ret = 0; ++ /* free(devname); */ + return ret; + } +