[patch] fix run_parts
Bernhard Fischer
rep.nop at aon.at
Wed Jun 7 22:19:36 UTC 2006
On Wed, Jun 07, 2006 at 11:56:11PM +0200, stephane.billiart at gmail.com wrote:
>The attached patch fix run_parts compilation when CONFIG_GETOPT_LONG is
>not set, replacing getopt_long with bb_getopt_ulflags.
I'm pretty sure that that patch doesn't work.
If you want to help with run_parts, then let me point you to
http://busybox.net/lists/busybox/2006-May/021828.html
cheers,
>
>--
>Stéphane Billiart http://perso.orange.fr/billiart/
>Index: debianutils/run_parts.c
>===================================================================
>--- debianutils/run_parts.c (revision 15327)
>+++ debianutils/run_parts.c (working copy)
>@@ -39,13 +39,14 @@
> #include <getopt.h>
> #include <stdlib.h>
>
>-
>+#if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS
> static const struct option runparts_long_options[] = {
> { "test", 0, NULL, 't' },
> { "umask", 1, NULL, 'u' },
> { "arg", 1, NULL, 'a' },
> { 0, 0, 0, 0 }
> };
>+#endif
>
> extern char **environ;
>
>@@ -60,8 +61,10 @@
>
> umask(022);
>
>- while ((opt = getopt_long (argc, argv, "tu:a:",
>- runparts_long_options, NULL)) > 0)
>+#if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS
>+ bb_applet_long_options = runparts_long_options;
>+#endif
>+ while ((opt = bb_getopt_ulflags (argc, argv, "tu:a:")) > 0)
> {
> switch (opt) {
> /* Enable test mode */
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox
More information about the busybox
mailing list