fix coreutils-i18n.patch to terminate mbdelim string (#911929)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
This commit is contained in:
parent
c7f6c7b9f6
commit
970e32111e
@ -498,7 +498,7 @@ diff -urNp coreutils-8.21-orig/src/cut.c coreutils-8.21/src/cut.c
|
||||
case 'f':
|
||||
/* Build the field list. */
|
||||
if (operating_mode != undefined_mode)
|
||||
@@ -808,10 +1150,35 @@ main (int argc, char **argv)
|
||||
@@ -808,10 +1150,36 @@ main (int argc, char **argv)
|
||||
case 'd':
|
||||
/* New delimiter. */
|
||||
/* Interpret -d '' to mean 'use the NUL byte as the delimiter.' */
|
||||
@ -523,6 +523,7 @@ diff -urNp coreutils-8.21-orig/src/cut.c coreutils-8.21/src/cut.c
|
||||
+ if (wcdelim != L'\0' && *(optarg + delimlen) != '\0')
|
||||
+ FATAL_ERROR (_("the delimiter must be a single character"));
|
||||
+ memcpy (mbdelim, optarg, delimlen);
|
||||
+ mbdelim[delimlen] = '\0';
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: A set of basic GNU tools commonly used in shell scripts
|
||||
Name: coreutils
|
||||
Version: 8.21
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv3+
|
||||
Group: System Environment/Base
|
||||
Url: http://www.gnu.org/software/coreutils/
|
||||
@ -376,6 +376,9 @@ fi
|
||||
%{_sbindir}/chroot
|
||||
|
||||
%changelog
|
||||
* Mon Feb 18 2013 Mark Wielaard <mjw@redhat.com> 8.21-3
|
||||
- fix coreutils-i18n.patch to terminate mbdelim string (#911929)
|
||||
|
||||
* Mon Feb 18 2013 Ondrej Vasik <ovasik@redhat.com> 8.21-2
|
||||
- remove unnecessary powerpc factor patch
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user