[haiku-bugs] Re: [Haiku] #8858: [mimeset] silently fails on symlinks

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 10 Aug 2012 11:08:13 -0000

#8858: [mimeset] silently fails on symlinks
---------------------------------+----------------------------
   Reporter:  diver              |      Owner:  anevilyak
       Type:  bug                |     Status:  assigned
   Priority:  normal             |  Milestone:  R1
  Component:  Servers/registrar  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by bonefish):

 The `update_mime_info()` and `create_app_meta_mime()` (and `mimeset`)
 behavior matches BeOS'. I also think it makes sense, since those functions
 have a recursive mode and you definitely don't want to follow symlinks in
 that mode, since that could result in infinite recursion or wild jumps.

 I don't think the behavior of the functions or `mimeset` should change. If
 you want an initial symlink to be resolved, it is rather simple to do that
 before calling the function/tool, using the BeAPI (e.g. BEntry) or in the
 shell `readlink`.

 I agree that Tracker's "Identify" feature should be more intelligent,
 though.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8858#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: