summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarinus Schraal <foser@gentoo.org>2004-10-28 22:22:37 +0000
committerMarinus Schraal <foser@gentoo.org>2004-10-28 22:22:37 +0000
commitb25278fcae359e91690f33f46a29e8eefa621c23 (patch)
tree4d12b0bc227a9e512cae7dd5d8e28468b400a53b /sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch
parentmark x86 (diff)
downloadhistorical-b25278fcae359e91690f33f46a29e8eefa621c23.tar.gz
historical-b25278fcae359e91690f33f46a29e8eefa621c23.tar.bz2
historical-b25278fcae359e91690f33f46a29e8eefa621c23.zip
new release
Diffstat (limited to 'sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch')
-rw-r--r--sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch b/sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch
new file mode 100644
index 000000000000..34d13b326e01
--- /dev/null
+++ b/sys-apps/hal/files/hal-0.4.0-fix-fstab-sync-crasher.patch
@@ -0,0 +1,70 @@
+Index: tools/fstab-sync.c
+===================================================================
+RCS file: /cvs/hal/hal/tools/fstab-sync.c,v
+retrieving revision 1.25
+diff -u -p -r1.25 fstab-sync.c
+--- tools/fstab-sync.c 15 Oct 2004 20:53:45 -0000 1.25
++++ tools/fstab-sync.c 19 Oct 2004 00:17:10 -0000
+@@ -1653,27 +1653,23 @@ main (int argc, const char *argv[])
+ openlog (PROGRAM_NAME, LOG_PID, LOG_USER);
+
+ struct poptOption options[] = {
+- {"add", 'a', POPT_ARG_STRING, &udi_to_add, 0,
+- N_("add an entry to fstab"), N_("UDI")},
+- {"remove", 'r', POPT_ARG_STRING, &udi_to_remove, 0,
+- N_("remove an entry from fstab"), N_("UDI")},
+- {"clean", 'c', POPT_ARG_NONE, &should_clean, 0,
+- N_("Remove all generated entries from fstab")},
+- {"verbose", 'v', POPT_ARG_NONE, &verbose, 0,
+- N_("Report detailed information about operation progress")},
++ {"add", 'a', POPT_ARG_STRING, &udi_to_add, 0, N_("add an entry to fstab"), N_("UDI")},
++ {"remove", 'r', POPT_ARG_STRING, &udi_to_remove, 0, N_("remove an entry from fstab"), N_("UDI")},
++ {"clean", 'c', POPT_ARG_NONE, &should_clean, 0, N_("Remove all generated entries from fstab"), NULL},
++ {"verbose", 'v', POPT_ARG_NONE, &verbose, 0, N_("Report detailed information about operation progress"), NULL},
+
+ POPT_AUTOHELP
+
+- {NULL, '\0', 0, NULL},
++ {NULL, '\0', 0, NULL, 0, NULL, NULL}
+ };
+
+ popt_context = poptGetContext (PROGRAM_NAME, argc, argv, options, 0);
+-
++
+ while ((i = poptGetNextOpt (popt_context)) != -1)
+ {
+ if (i < -1)
+ {
+- poptPrintHelp (popt_context, stderr, 0);
++ poptPrintHelp (popt_context, stderr, 0);
+ return 1;
+ }
+ }
+@@ -1760,7 +1756,6 @@ main (int argc, const char *argv[])
+ break;
+ }
+ }
+- poptFreeContext (popt_context);
+
+ hal_context = hal_initialize (NULL, FALSE);
+ fsy_mount_root = hal_drive_policy_default_get_mount_root (hal_context);
+@@ -1792,8 +1787,8 @@ main (int argc, const char *argv[])
+ retval = clean ();
+ else
+ {
+- poptPrintHelp (popt_context, stderr, 0);
+- return 1;
++ poptPrintHelp (popt_context, stderr, 0);
++ return 1;
+ }
+
+ if (hal_device_udi != NULL) {
+@@ -1816,6 +1811,8 @@ main (int argc, const char *argv[])
+ fstab_update_debug (_("\n"));
+ }
+
++ poptFreeContext (popt_context);
++
+ out:
+ return retval;
+ }