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

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 10 Aug 2012 02:05:08 -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
---------------------------------+----------------------------
Changes (by anevilyak):

 * status:  new => assigned
 * component:  Kits/Storage Kit => Servers/registrar


Comment:

 It turns out that it is actually succeeding ; at identifying the link
 itself. The registrar opens the supplied ref such that it's not followed
 if it's a link. As a consequence, the sniffer is only run on the link
 itself, which obviously just gets identified as a symlink. I'd propose
 that if the ref upon which a mime update is requested is a link, then we
 also update info for its target, since that's the more likely behavior
 anticipated by the user. Will leave the ticket open for now in case anyone
 objects/has an alternative suggestion, otherwise I have a trivial patch
 which would handle the above change.

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

Other related posts: