SOURCES: file-magic.patch - updated for 4.16

qboosh qboosh at pld-linux.org
Wed Oct 19 13:17:38 CEST 2005


Author: qboosh                       Date: Wed Oct 19 11:17:37 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 4.16

---- Files affected:
SOURCES:
   file-magic.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/file-magic.patch
diff -u SOURCES/file-magic.patch:1.1 SOURCES/file-magic.patch:1.2
--- SOURCES/file-magic.patch:1.1	Sun Sep 11 12:58:21 2005
+++ SOURCES/file-magic.patch	Wed Oct 19 13:17:32 2005
@@ -10,16 +10,3 @@
  	}
  
  	if ((ms->flags & MAGIC_MIME) != 0) {
---- file-4.14/src/file.c.magic	2005-03-06 06:58:22.000000000 +0100
-+++ file-4.14/src/file.c	2005-07-14 09:47:08.000000000 +0200
-@@ -362,7 +362,8 @@
- 	}
- 
- 	while (fgets(buf, MAXPATHLEN, f) != NULL) {
--		buf[file_mbswidth(buf)-1] = '\0';
-+	        // cut off CR, we _need_ bytes here, not characters
-+		buf[strlen(buf)-1] = '\0';
- 		process(buf, wid);
- 		if(nobuffer)
- 			(void) fflush(stdout);
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/file-magic.patch?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list