[BusyBox] [PATCH] readlink -f
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Oct 28 15:29:00 UTC 2004
Colin,
if use libbb/have bb_getopt_ulflags() this patch is simplyfied
> + unsigned char follow_flag = 0;
+ int follow_flag = bb_getopt_ulflags(argc, argv, readlink_options);
This code a block do not require now:
> + int opt;
> +
> + while ((opt = getopt(argc, argv, readlink_options)) != -1) {
> + switch (opt) {
> +#ifdef CONFIG_FEATURE_READLINK_FOLLOW
> + case 'f':
> + follow_flag = 1;
> + break;
> +#endif
> + default:
> + bb_show_usage();
> + }
> + }
--w
vodz
More information about the busybox
mailing list