From e07db305578a64e58b5657ab34cf792a847d5096d3f831cbc596e237a73223ba Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 6 Oct 2008 17:09:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tcsh?expand=0&rev=12 --- tcsh-6.15.00-blanks.dif | 23 +++++++++++++++++++++++ tcsh.changes | 5 +++++ tcsh.spec | 17 ++++++++++++++--- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 tcsh-6.15.00-blanks.dif diff --git a/tcsh-6.15.00-blanks.dif b/tcsh-6.15.00-blanks.dif new file mode 100644 index 0000000..8a2477b --- /dev/null +++ b/tcsh-6.15.00-blanks.dif @@ -0,0 +1,23 @@ +--- sh.misc.c ++++ sh.misc.c 2008-10-06 13:58:56.389867280 +0000 +@@ -185,8 +185,18 @@ saveblk(Char **v) + + onewv = newv = xcalloc(blklen(v) + 1, sizeof(Char **)); + +- while (*v) +- *newv++ = Strsave(*v++); ++ while (*v) { ++ Char *__restrict__ l = *v; ++ do { ++ int c; ++ if (!l || (c = TRM(*l)) != ' ' && c != '\t' && c != '\n') ++ break; /* strip blanks */ ++ l++; ++ } while (*l); ++ *newv++ = Strsave(l); ++ v++; ++ } ++ + return (onewv); + } + diff --git a/tcsh.changes b/tcsh.changes index 737333b..45731b0 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 6 16:09:36 CEST 2008 - werner@suse.de + +- Avoid blanks at the beginning of command lists (bnc#431661) + ------------------------------------------------------------------- Fri Jun 13 17:20:19 CEST 2008 - werner@suse.de diff --git a/tcsh.spec b/tcsh.spec index 25bf8e2..8ad9711 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -2,9 +2,16 @@ # spec file for package tcsh (Version 6.15.00) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -19,7 +26,7 @@ Group: System/Shells Requires: gawk textutils AutoReqProv: on Version: 6.15.00 -Release: 65 +Release: 89 Summary: The C SHell Source: ftp.astron.com:/pub/tcsh/tcsh-6.15.00.tar.bz2 Source1: nls-iconv @@ -32,6 +39,7 @@ Patch3: tcsh-6.15.00-pipe.dif Patch4: tcsh-6.15.00-longjmp.dif Patch5: tcsh-6.15.00-norm-cmd.dif Patch6: tcsh-6.15.00-history.dif +Patch7: tcsh-6.15.00-blanks.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -56,6 +64,7 @@ Authors: %patch4 -p0 -b .longjmp %patch5 -p0 -b .normcmd %patch6 -p0 -b .history +%patch7 -p0 -b .blanks %patch sh $RPM_SOURCE_DIR/nls-iconv @@ -138,6 +147,8 @@ Authors: %{_datadir}/locale/*/LC_MESSAGES/tcsh %changelog +* Mon Oct 06 2008 werner@suse.de +- Avoid blanks at the beginning of command lists (bnc#431661) * Fri Jun 13 2008 werner@suse.de - Add complete rule for local executables ./* * Thu Dec 20 2007 werner@suse.de