Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37767080
en ru br
ALT Linux repos
S:3.2.06-alt14
5.0: 3.2.06-alt9
4.1: 3.2.06-alt7
4.0: 3.2.06-alt7
3.0: 3.2.06-alt6

Group :: Text tools
RPM: ispell

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ispell-3.20-xb-options.patch
Download


--- ispell-3.1.20.orig/ispell.c
+++ ispell-3.1.20/ispell.c
@@ -256,6 +256,7 @@
     static char	outbuf[BUFSIZ];
     int		argno;
     int		arglen;
+    int		bflag = 0;
     int		dictdeft = 0;
 
     Cmd = *argv;
@@ -552,12 +553,13 @@
 		nodictflag++;
 		break;
 	    case 'b':
-		if (arglen > 2)
+		if (arglen > 2 || xflag == 1)
 		    usage ();
 		xflag = 0;		/* Keep a backup file */
+		bflag = 1;
 		break;
 	    case 'x':
-		if (arglen > 2)
+		if (arglen > 2 || bflag == 1)
 		    usage ();
 		xflag = 1;		/* Don't keep a backup file */
 		break;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin