rpms/lynx/devel lynx-2.8.6-options.patch, NONE, 1.1 lynx.spec, 1.42, 1.43
Ivana Varekova (varekova)
fedora-extras-commits at redhat.com
Tue Oct 2 11:58:38 UTC 2007
- Previous message (by thread): rpms/makehuman/FC-6 makehuman.spec,NONE,1.1 sources,1.1,1.2
- Next message (by thread): rpms/gpredict/devel .cvsignore, 1.7, 1.8 gpredict.spec, 1.12, 1.13 sources, 1.7, 1.8 gpredict-0.8.0-tooltip.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: varekova
Update of /cvs/pkgs/rpms/lynx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4619
Modified Files:
lynx.spec
Added Files:
lynx-2.8.6-options.patch
Log Message:
fix 311031 - fix argument parsing
lynx-2.8.6-options.patch:
--- NEW FILE lynx-2.8.6-options.patch ---
--- lynx2-8-6/src/LYMain.c.pom 2006-09-19 02:28:28.000000000 +0200
+++ lynx2-8-6/src/LYMain.c 2007-10-02 13:42:07.000000000 +0200
@@ -4083,6 +4083,7 @@ static BOOL parse_arg(char **argv,
#if EXTENDED_STARTFILE_RECALL
static BOOLEAN no_options_further = FALSE; /* set to TRUE after '--' argument */
+ static int nof_index = 0; /* set the index of -- argument */
#endif
arg_name = argv[0];
@@ -4102,9 +4103,9 @@ static BOOL parse_arg(char **argv,
/*
* Check for a command line startfile. - FM
*/
- if (*arg_name != '-'
+ if (*arg_name != '-'
#if EXTENDED_OPTION_LOGIC
- || no_options_further == TRUE
+ || (no_options_further == TRUE && nof_index<(*countp))
#endif
) {
#if EXTENDED_STARTFILE_RECALL
@@ -4140,6 +4141,7 @@ static BOOL parse_arg(char **argv,
#if EXTENDED_OPTION_LOGIC
if (strcmp(arg_name, "--") == 0) {
no_options_further = TRUE;
+ nof_index = *countp;
return TRUE;
}
#endif
Index: lynx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lynx/devel/lynx.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- lynx.spec 28 Aug 2007 18:05:34 -0000 1.42
+++ lynx.spec 2 Oct 2007 11:58:06 -0000 1.43
@@ -1,13 +1,14 @@
Summary: A text-based Web browser
Name: lynx
Version: 2.8.6
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPL
Group: Applications/Internet
Source: http://lynx.isc.org/current/lynx%{version}.tar.bz2
URL: http://lynx.isc.org/
Patch0: lynx-2.8.6-redhat.patch
Patch1: lynx-crash.patch
+Patch2: lynx-2.8.6-options.patch
Requires: indexhtml
Provides: webclient
BuildRequires: openssl-devel, pkgconfig, ncurses-devel >= 5.3-5,
@@ -24,6 +25,7 @@
%setup -q -n lynx2-8-6
%patch0 -p1 -b .redhat
%patch1 -p1 -b .crash
+%patch2 -p1 -b .opt
perl -pi -e "s,^HELPFILE:.*,HELPFILE:file://localhost/usr/share/doc/lynx-%{version}/lynx_help/lynx_help_main.html,g" lynx.cfg
perl -pi -e "s,^DEFAULT_INDEX_FILE:.*,DEFAULT_INDEX_FILE:http://www.google.com/,g" lynx.cfg
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
@@ -95,6 +97,9 @@
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
%changelog
+* Tue Oct 2 2007 Ivana Varekova <varekova at redhat.com> - 2.8.6-6
+- fix 311031 - fix argument parsing
+
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.8.6-5
- Rebuild for selinux ppc32 issue.
- Previous message (by thread): rpms/makehuman/FC-6 makehuman.spec,NONE,1.1 sources,1.1,1.2
- Next message (by thread): rpms/gpredict/devel .cvsignore, 1.7, 1.8 gpredict.spec, 1.12, 1.13 sources, 1.7, 1.8 gpredict-0.8.0-tooltip.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list