[packages/busybox] Rediff patches.

arekm arekm at pld-linux.org
Thu Oct 21 10:31:04 CEST 2021


commit c7d0a9a673d282720e066ed72996b8ea00e2c9f1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 21 10:30:09 2021 +0200

    Rediff patches.

 busybox-ash-export-PATH.patch | 11 ++++++-----
 busybox-printf-gettext.patch  | 20 +++++++++++---------
 2 files changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/busybox-ash-export-PATH.patch b/busybox-ash-export-PATH.patch
index 47bfcaa..44aa5ab 100644
--- a/busybox-ash-export-PATH.patch
+++ b/busybox-ash-export-PATH.patch
@@ -1,8 +1,9 @@
---- busybox.orig/shell/ash.c
-+++ busybox/shell/ash.c
-@@ -1748,7 +1748,7 @@
- 	{ VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL\0"    , changemail      },
- 	{ VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH\0", changemail      },
+diff -urNp -x '*.orig' busybox-1.31.1.org/shell/ash.c busybox-1.31.1/shell/ash.c
+--- busybox-1.31.1.org/shell/ash.c	2019-10-21 16:54:40.000000000 +0200
++++ busybox-1.31.1/shell/ash.c	2021-10-21 10:29:26.053148921 +0200
+@@ -2096,7 +2096,7 @@ static const struct {
+ 	{ VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL"      , changemail      },
+ 	{ VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH"  , changemail      },
  #endif
 -	{ VSTRFIXED|VTEXTFIXED       , bb_PATH_root_path, changepath },
 +	{ VSTRFIXED|VTEXTFIXED|VEXPORT, bb_PATH_root_path, changepath },
diff --git a/busybox-printf-gettext.patch b/busybox-printf-gettext.patch
index ec29e13..923a523 100644
--- a/busybox-printf-gettext.patch
+++ b/busybox-printf-gettext.patch
@@ -1,8 +1,9 @@
---- busybox-1.12.2/coreutils/printf.c	2008-09-28 20:04:18.000000000 +0200
-+++ busybox-1.12.2.patch/coreutils/printf.c	2008-11-19 13:00:54.187842550 +0100
-@@ -38,6 +38,9 @@
- 
- //   19990508 Busy Boxed! Dave Cinege
+diff -urNp -x '*.orig' busybox-1.31.1.org/coreutils/printf.c busybox-1.31.1/coreutils/printf.c
+--- busybox-1.31.1.org/coreutils/printf.c	2019-06-10 12:50:53.000000000 +0200
++++ busybox-1.31.1/coreutils/printf.c	2021-10-21 10:28:37.833148938 +0200
+@@ -59,6 +59,9 @@
+ //usage:       "$ printf \"Val=%d\\n\" 5\n"
+ //usage:       "Val=5\n"
  
 +// on by default
 +#define BB_FEATURE_PRINTF_GETTEXT
@@ -10,7 +11,7 @@
  #include "libbb.h"
  
  /* A note on bad input: neither bash 3.2 nor coreutils 6.10 stop on it.
-@@ -334,10 +337,131 @@
+@@ -400,11 +403,132 @@ static char **print_formatted(char *f, c
  	return argv;
  }
  
@@ -142,14 +143,15 @@
 +	format = getmsg(nls_file, argv[optind++]);
  
  	/* We must check that stdout is not closed.
-@@ -362,8 +486,8 @@
- 	if (!argv[1])
+ 	 * The reason for this is highly non-obvious.
+@@ -436,8 +560,8 @@ int printf_main(int argc UNUSED_PARAM, c
  		bb_show_usage();
+ 	}
  
 -	format = argv[1];
 -	argv2 = argv + 2;
 +    argv += optind;
 +	argv2 = argv;
  
+ 	conv_err = 0;
  	do {
- 		argv = argv2;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/busybox.git/commitdiff/c7d0a9a673d282720e066ed72996b8ea00e2c9f1



More information about the pld-cvs-commit mailing list