[Pkg-utopia-commits] r136 - in packages/hal/trunk/debian: . patches

Sjoerd Simons sjoerd@haydn.debian.org
Wed, 08 Dec 2004 07:33:33 -0700


Author: sjoerd
Date: 2004-12-08 07:32:01 -0700 (Wed, 08 Dec 2004)
New Revision: 136

Added:
   packages/hal/trunk/debian/patches/fstab-sync-crash.patch
Modified:
   packages/hal/trunk/debian/changelog
Log:
Fix fstab-sync crash

Modified: packages/hal/trunk/debian/changelog
===================================================================
--- packages/hal/trunk/debian/changelog	2004-12-08 09:11:40 UTC (rev 135)
+++ packages/hal/trunk/debian/changelog	2004-12-08 14:32:01 UTC (rev 136)
@@ -1,3 +1,10 @@
+hal (0.4.2-2) UNRELEASED; urgency=low
+
+  * debian/patches/fstab-sync-crash.patch
+    + Don't crash on cleaning fstab in certain circumstances (Closes: #284721)
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Thu,  2 Dec 2004 14:18:04 +0100
+
 hal (0.4.2-1) unstable; urgency=low
 
   * New upstream release

Added: packages/hal/trunk/debian/patches/fstab-sync-crash.patch
===================================================================
--- packages/hal/trunk/debian/patches/fstab-sync-crash.patch	2004-12-08 09:11:40 UTC (rev 135)
+++ packages/hal/trunk/debian/patches/fstab-sync-crash.patch	2004-12-08 14:32:01 UTC (rev 136)
@@ -0,0 +1,16 @@
+Index: tools/fstab-sync.c
+===================================================================
+RCS file: /cvs/hal/hal/tools/fstab-sync.c,v
+retrieving revision 1.27
+diff -u -r1.27 fstab-sync.c
+--- tools/fstab-sync.c	21 Oct 2004 21:27:44 -0000	1.27
++++ tools/fstab-sync.c	8 Dec 2004 13:14:04 -0000
+@@ -1506,7 +1506,7 @@
+ 
+ static boolean fs_table_line_is_mounted (FSTableLine *line)
+ {
+-  FILE *f;
++  FILE *f = NULL;
+   boolean is_mounted = FALSE;
+   struct mntent *m;
+