1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 02_fix_fstab_parsing.dpatch by Goedson Teixeira Paixao <goedson@debian.org>
4
## DP: Make node and mount sizes dynamic so long device names in fstab won't make
8
diff -urNad gnomebaker-0.6.2~/src/devices.c gnomebaker-0.6.2/src/devices.c
9
--- gnomebaker-0.6.2~/src/devices.c 2007-09-16 13:36:33.000000000 -0300
10
+++ gnomebaker-0.6.2/src/devices.c 2007-10-23 17:30:38.000000000 -0200
13
if((*line)[0] != '#') /* ignore commented out lines */
15
- gchar node[64], mount[64];
16
+ gchar *node, *mount;
17
+ int line_size = strlen(*line);
18
+ node = g_new0(gchar, line_size);
19
+ mount = g_new0(gchar, line_size);
20
if(sscanf(*line, "%s\t%s", node, mount) == 2)
22
GB_TRACE("devices_add_device - node [%s] mount [%s]\n", node, mount);
26
if(mount_point != NULL)