From: Christos Zoulas Date: Fri, 10 Apr 2015 15:36:01 +0000 (+0000) Subject: change comma-separated, to slash-separated X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e4c99069052d1f323df16f1f849da2d665f77a6;p=file change comma-separated, to slash-separated --- diff --git a/doc/file.man b/doc/file.man index 6a1fd904..ca26c370 100644 --- a/doc/file.man +++ b/doc/file.man @@ -1,4 +1,4 @@ -.\" $File: file.man,v 1.113 2015/04/09 20:01:40 christos Exp $ +.\" $File: file.man,v 1.114 2015/04/10 15:36:01 christos Exp $ .Dd April 9, 2015 .Dt FILE __CSECTION__ .Os @@ -215,7 +215,7 @@ Consults magic files. Examines tar files. .El .It Fl Fl extension -Print a comma-separated list of valid extensions for the file type found. +Print a slash-separated list of valid extensions for the file type found. .It Fl F , Fl Fl separator Ar separator Use the specified string as the separator between the filename and the file result returned. diff --git a/doc/libmagic.man b/doc/libmagic.man index 933e4233..4f3ef5cb 100644 --- a/doc/libmagic.man +++ b/doc/libmagic.man @@ -1,4 +1,4 @@ -.\" $File: libmagic.man,v 1.35 2015/04/09 20:01:40 christos Exp $ +.\" $File: libmagic.man,v 1.36 2015/04/10 15:36:01 christos Exp $ .\" .\" Copyright (c) Christos Zoulas 2003. .\" All Rights Reserved. @@ -133,7 +133,7 @@ as real errors, instead of printing them in the magic buffer. .It Dv MAGIC_APPLE Return the Apple creator and type. .It Dv MAGIC_EXTENSION -Return a comma-separated list of extensions for this file type. +Return a slash-separated list of extensions for this file type. .It Dv MAGIC_NO_CHECK_APPTYPE Don't check for .Dv EMX diff --git a/magic/Magdir/jpeg b/magic/Magdir/jpeg index daa86602..b20b19fc 100644 --- a/magic/Magdir/jpeg +++ b/magic/Magdir/jpeg @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: jpeg,v 1.28 2015/04/09 20:01:40 christos Exp $ +# $File: jpeg,v 1.29 2015/04/10 15:36:02 christos Exp $ # JPEG images # SunOS 5.5.1 had # @@ -13,7 +13,7 @@ !:mime image/jpeg !:apple 8BIMJPEG !:strength *3 -!:ext jpeg,jpg,jpe,jfif +!:ext jpeg/jpg/jpe/jfif >6 string JFIF \b, JFIF standard # The following added by Erik Rossen 1999-09-06 # in a vain attempt to add image size reporting for JFIF. Note that these diff --git a/src/file_opts.h b/src/file_opts.h index 79ced3a4..317cb328 100644 --- a/src/file_opts.h +++ b/src/file_opts.h @@ -29,7 +29,7 @@ OPT('F', "separator", 1, " STRING use string as separator instead of `:'\n") OPT('i', "mime", 0, " output MIME type strings (--mime-type and\n" " --mime-encoding)\n") OPT_LONGONLY("apple", 0, " output the Apple CREATOR/TYPE\n") -OPT_LONGONLY("extension", 0, " output a comma-separated list of extnsions\n") +OPT_LONGONLY("extension", 0, " output a slash-separated list of extnsions\n") OPT_LONGONLY("mime-type", 0, " output the MIME type\n") OPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n") OPT('k', "keep-going", 0, " don't stop at the first match\n") diff --git a/src/magic.h.in b/src/magic.h.in index 91997be9..3e7b10e0 100644 --- a/src/magic.h.in +++ b/src/magic.h.in @@ -43,7 +43,8 @@ #define MAGIC_MIME_ENCODING 0x0000400 /* Return the MIME encoding */ #define MAGIC_MIME (MAGIC_MIME_TYPE|MAGIC_MIME_ENCODING) #define MAGIC_APPLE 0x0000800 /* Return the Apple creator/type */ -#define MAGIC_EXTENSION 0x1000000 /* Return the Apple creator/type */ +#define MAGIC_EXTENSION 0x1000000 /* Return a /-separated list of + * extensions */ #define MAGIC_NO_CHECK_COMPRESS 0x0001000 /* Don't check for compressed files */ #define MAGIC_NO_CHECK_TAR 0x0002000 /* Don't check for tar files */