source:
patches/file-5.00-fixes-1.patch@
b3dfbf1
Last change on this file since b3dfbf1 was e244b2a, checked in by , 16 years ago | |
---|---|
|
|
File size: 2.4 KB |
-
magic/Magdir/msdos
Submitted by: Jim Gifford (jim at cross-lfs dot org) Date: 2009-12-16 Initial Package Version: 5.00 Upstream Status: Already Applied Origin: Jim Gifford Description: Fixes Various Build Issues in File Localization Fixes diff -Naur file-5.00.orig/magic/Magdir/msdos file-5.00/magic/Magdir/msdos
old new 294 294 >10 string >\x23 295 295 >>10 string !\x2e 296 296 >>>17 string <\x5B 297 >>>>10 string x\b, name: %.8s298 #UDMA.SYS KEYB.SYS CMD640X2.SYS297 >>>>10 string CMD640X2.SYS \b, name: %.8s 298 #UDMA.SYS 299 299 >10 string <\x41 300 300 >>12 string >\x40 301 301 >>>10 string !$ 302 >>>>12 string x \b, name: %.8s 303 #BTCDROM.SYS ASPICD.SYS 302 >>>>12 string UDMA.SYS \b, name: %.8s 303 #CMD640X2.SYS 304 >10 string <\x41 305 >>12 string >\x40 306 >>>10 string !$ 307 >>>>12 string CMD640X2.SYS \b, name: %.8s 308 #KEYB.SYS 309 >10 string <\x41 310 >>12 string >\x40 311 >>>10 string !$ 312 >>>>12 string KEYB.SYS \b, name: %.8s 313 #BTCDROM.SYS 314 >22 string >\x40 315 >>22 string <\x5B 316 >>>23 string <\x5B 317 >>>>22 string BTCDROM.SYS \b, name: %.8s 318 #ASPICD.SYS 304 319 >22 string >\x40 305 320 >>22 string <\x5B 306 321 >>>23 string <\x5B 307 >>>>22 string x\b, name: %.8s322 >>>>22 string ASPICD.SYS \b, name: %.8s 308 323 #ATAPICD.SYS 309 324 >76 string \0 310 325 >>77 string >\x40 311 326 >>>77 string <\x5B 312 >>>>77 string x\b, name: %.8s327 >>>>77 string ATAPICD.SYS \b, name: %.8s 313 328 # test too generic ? 314 329 0 byte 0x8c DOS executable (COM) 315 330 # updated by Joerg Jenderek at Oct 2008 -
src/readcdf.c
diff -Naur file-5.00.orig/src/readcdf.c file-5.00/src/readcdf.c
old new 75 75 if (len > 1) { 76 76 s = info[i].pi_str.s_buf; 77 77 if (NOTMIME(ms)) { 78 if (file_printf(ms, ", %s: %.*s", buf, 79 len, s) == -1) 80 return -1; 78 char vbuf[1024]; 79 size_t j; 80 for (j = 0; j < sizeof(vbuf) && len--; 81 j++, s++) { 82 if (*s == '\0') 83 break; 84 if (isprint((unsigned char)*s)) 85 vbuf[j] = *s; 86 } 87 if (j == sizeof(vbuf)) 88 --j; 89 vbuf[j] = '\0'; 90 if (vbuf[0]) { 91 if (file_printf(ms, ", %s: %s", 92 buf, vbuf) == -1) 93 return -1; 94 } 81 95 } else if (info[i].pi_id == 82 96 CDF_PROPERTY_NAME_OF_APPLICATION) { 83 97 if (strstr(s, "Word"))
Note:
See TracBrowser
for help on using the repository browser.