Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37417149
en ru br
ALT Linux repos
S:5.45-alt1
D:4.20-alt5.1
5.0: 4.26-alt2
4.1: 4.20-alt5
4.0: 4.20-alt5
3.0: 4.13-alt1

Other repositories
Upstream:4.23

Group :: File tools
RPM: file

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: file-4.10-alt-fixes.patch
Download


diff -uprk.orig file-4.10.orig/src/softmagic.c file-4.10/src/softmagic.c
--- file-4.10.orig/src/softmagic.c	2004-07-25 00:38:56 +0400
+++ file-4.10/src/softmagic.c	2004-10-17 01:32:08 +0400
@@ -133,7 +133,7 @@ match(struct magic_set *ms, struct magic
 			 * main entry didn't match,
 			 * flush its continuations
 			 */
-			while (magindex < nmagic - 1 &&
+			while (magindex + 1 < nmagic &&
 			       magic[magindex + 1].cont_level != 0)
 			       magindex++;
 			continue;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin