History log of /haiku/src/bin/mimeset.cpp
Revision Date Author Comments
# 91ec679f 21-Jul-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

PVS V1010: access before start of buffer after fgets

Change-Id: I8cfa1e8a3c8dd8c2837e51756ac3eeaea1e756f0
Reviewed-on: https://review.haiku-os.org/c/1639
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# d113c00b 23-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

Remove more HOST_PLATFORM_SUNOS cruft.


# 2b76973f 21-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Use TextSnifferAddon when using a custom MIME DB

That addresses the problem that packaged text files aren't correctly
identified (ticket #9972). All concerned packages have to be rebuilt,
of course.


# 0c61965f 08-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Complete custom mime DB support

* Don't require the first MIME DB directory to exist anymore. Database
creates it anyway.
* Make use of MimeInfoUpdater to support updating MIME info with a
custom MIME DB.
* Make use of MimeEntryProcessor::DoRecursively() to support recursive
operation with a custom MIME DB.


# 9ea1940c 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: WIP to support custom MIME DB directories

Add option -m/--mimedb for specifying one or more directories to be
used as the MIME DB instead of the system MIME DB. Currently only works
with --apps and only non-recursive.

When fully implemented the new feature will be used in the build system
and on Haiku when building packages to generated the MIME DB entries for
applications, so those can be included in the same package. Furthermore
it will be possible to use the MIME DB the build system already
generates to identify files before packaging them.


# a625f557 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Change options style

* Use "--" prefix for long options and switch to getopt parsing. There's
still compatibility support for "-apps" and "-all", but they are
considered obsolete, now.
* Add short options "-a" for "--apps", "-A" for "--all", and "-h" for
"--help".


# f8d6e1f9 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Style update


# 4d121ec0 09-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96e23ec3 07-Mar-2008 Stephan Aßmus <superstippi@gmx.de>

* Check the return code of the functions that trigger the work in the
registrar.
* Added the constant names to the force parameter (as comments for now).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f9939f0 27-Jun-2007 Michael Lotz <mmlr@mlotz.ch>

Made a failing update_mime_info() non fatal. It seems that the BeOS version of mimeset does the same. Tested with FileType-F a mimeset under R5 does not quit with an error. This fixes the build on R5 and should therefore fix bug #1280.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21518 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20bda753 22-Jun-2007 Jérôme Duval <korli@users.berlios.de>

exit with 1 when an error occurs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21494 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 29cb39c4 21-Jun-2007 Jérôme Duval <korli@users.berlios.de>

actually exit with an error when it happens


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21484 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd9772de 29-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed build on BeOS: MimeType.h doesn't exist; we need to use Mime.h.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16135 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4aab22ef 27-Sep-2005 Axel Dörfler <axeld@pinc-software.de>

Implemented the "mimeset" command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14264 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2b76973fa2401f7a5edf68e6470f3d3210cbcff3 21-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Use TextSnifferAddon when using a custom MIME DB

That addresses the problem that packaged text files aren't correctly
identified (ticket #9972). All concerned packages have to be rebuilt,
of course.


# 0c61965f2b7d83b6b985ec1cb376f7673cd93682 08-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Complete custom mime DB support

* Don't require the first MIME DB directory to exist anymore. Database
creates it anyway.
* Make use of MimeInfoUpdater to support updating MIME info with a
custom MIME DB.
* Make use of MimeEntryProcessor::DoRecursively() to support recursive
operation with a custom MIME DB.


# 9ea1940c48f96fb923fe654792d5372ab800ef7c 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: WIP to support custom MIME DB directories

Add option -m/--mimedb for specifying one or more directories to be
used as the MIME DB instead of the system MIME DB. Currently only works
with --apps and only non-recursive.

When fully implemented the new feature will be used in the build system
and on Haiku when building packages to generated the MIME DB entries for
applications, so those can be included in the same package. Furthermore
it will be possible to use the MIME DB the build system already
generates to identify files before packaging them.


# a625f557c5c896b64b535f95be155fbba2a00b88 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Change options style

* Use "--" prefix for long options and switch to getopt parsing. There's
still compatibility support for "-apps" and "-all", but they are
considered obsolete, now.
* Add short options "-a" for "--apps", "-A" for "--all", and "-h" for
"--help".


# f8d6e1f9387ce12626c411909c00f9dfdf2f4e3e 07-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

mimeset: Style update


# 4d121ec0678890dc6c2b19bdf11a7b9e02785462 09-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26899 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96e23ec32532cadb966d233a2f15ed36a74a5770 07-Mar-2008 Stephan Aßmus <superstippi@gmx.de>

* Check the return code of the functions that trigger the work in the
registrar.
* Added the constant names to the force parameter (as comments for now).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f9939f06dcdefc690c34d9d20442257bb08bd19 27-Jun-2007 Michael Lotz <mmlr@mlotz.ch>

Made a failing update_mime_info() non fatal. It seems that the BeOS version of mimeset does the same. Tested with FileType-F a mimeset under R5 does not quit with an error. This fixes the build on R5 and should therefore fix bug #1280.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21518 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20bda75303f7174acb9a2de18e50c2b34d4f7c63 22-Jun-2007 Jérôme Duval <korli@users.berlios.de>

exit with 1 when an error occurs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21494 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 29cb39c4ff6d7b0b43dbbadde1bb14f3be62a188 21-Jun-2007 Jérôme Duval <korli@users.berlios.de>

actually exit with an error when it happens


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21484 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd9772def6f2eefdce9c7e0f9668787c357f80a9 29-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed build on BeOS: MimeType.h doesn't exist; we need to use Mime.h.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16135 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4aab22ef1c2a465922decd14c841c1b652847bad 27-Sep-2005 Axel Dörfler <axeld@pinc-software.de>

Implemented the "mimeset" command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14264 a95241bf-73f2-0310-859d-f6bbb57e9c96