diff options
Diffstat (limited to 'web/attachments/190509-check_disk.patch')
-rw-r--r-- | web/attachments/190509-check_disk.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/web/attachments/190509-check_disk.patch b/web/attachments/190509-check_disk.patch new file mode 100644 index 0000000..ba4a9ed --- /dev/null +++ b/web/attachments/190509-check_disk.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | --- check_disk.c.old 2006-08-24 14:23:56.131294343 -0400 | ||
2 | +++ check_disk.c 2006-08-24 14:25:19.000294237 -0400 | ||
3 | @@ -339,6 +339,7 @@ process_arguments (int argc, char **argv | ||
4 | return ERROR; | ||
5 | |||
6 | se = (struct name_list *) malloc (sizeof (struct name_list)); | ||
7 | + memset(se,0,sizeof(struct name_list)); | ||
8 | se->name = strdup ("iso9660"); | ||
9 | se->name_next = NULL; | ||
10 | se->found = 0; | ||
11 | @@ -456,6 +457,7 @@ process_arguments (int argc, char **argv | ||
12 | break; | ||
13 | case 'p': /* select path */ | ||
14 | se = (struct name_list *) malloc (sizeof (struct name_list)); | ||
15 | + memset(se,0,sizeof(struct name_list)); | ||
16 | se->name = optarg; | ||
17 | se->name_next = NULL; | ||
18 | se->w_df = w_df; | ||
19 | @@ -469,6 +471,7 @@ process_arguments (int argc, char **argv | ||
20 | break; | ||
21 | case 'x': /* exclude path or partition */ | ||
22 | se = (struct name_list *) malloc (sizeof (struct name_list)); | ||
23 | + memset(se,0,sizeof(struct name_list)); | ||
24 | se->name = optarg; | ||
25 | se->name_next = NULL; | ||
26 | |||
27 | @@ -487,6 +490,7 @@ process_arguments (int argc, char **argv | ||
28 | break; | ||
29 | case 'X': /* exclude file system type */ | ||
30 | se = (struct name_list *) malloc (sizeof (struct name_list)); | ||
31 | + memset(se,0,sizeof(struct name_list)); | ||
32 | se->name = optarg; | ||
33 | se->name_next = NULL; | ||
34 | /* If you don't clear the w_fd etc values here, they | ||
35 | @@ -541,6 +545,7 @@ process_arguments (int argc, char **argv | ||
36 | |||
37 | if (argc > c && path == NULL) { | ||
38 | se = (struct name_list *) malloc (sizeof (struct name_list)); | ||
39 | + memset(se,0,sizeof(struct name_list)); | ||
40 | se->name = strdup (argv[c++]); | ||
41 | se->name_next = NULL; | ||
42 | se->w_df = w_df; | ||