/[smeserver]/rpms/hal/sme7/hal-0.4.2-larger-mtab-buffer.patch
ViewVC logotype

Annotation of /rpms/hal/sme7/hal-0.4.2-larger-mtab-buffer.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Mar 22 16:11:10 2012 UTC (12 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: hal-0_4_2-9_0_el4_sme, hal-0_4_2-8_EL4, hal-0_4_2-9_el4_sme, HEAD
Import

1 slords 1.1 diff -urN hal-0.4.2/hald/linux/block_class_device.c hal-0.4.2-ti/hald/linux/block_class_device.c
2     --- hal-0.4.2/hald/linux/block_class_device.c 2004-11-30 21:39:01.000000000 -0600
3     +++ hal-0.4.2-ti/hald/linux/block_class_device.c 2007-04-26 12:19:33.000000000 -0500
4     @@ -1897,7 +1897,7 @@
5     int i;
6     char *p;
7     char *delim = " \t\n";
8     - char buf[256];
9     + char buf[8192];
10     char *bufp = buf;
11     struct stat stat_buf;
12     int major = 0;
13     @@ -1983,7 +1983,7 @@
14     read_etc_mtab (dbus_bool_t force)
15     {
16     int fd;
17     - char buf[256];
18     + char buf[8192];
19     FILE *f;
20     struct stat stat_buf;
21    
22     @@ -2020,7 +2020,7 @@
23     }
24    
25     while (!feof (f)) {
26     - if (fgets (buf, 256, f) == NULL)
27     + if (fgets (buf, 8192, f) == NULL)
28     break;
29     /*printf("got line: '%s'\n", buf); */
30     etc_mtab_process_line (buf);

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed