[Portland] [Bug 7123] New: xdg-mime has inconsistant output for error cases

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Mon Jun 5 17:16:05 PDT 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=7123          
     
           Summary: xdg-mime has inconsistant output for error cases
           Product: Portland
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: xdg-utils
        AssignedTo: portland at lists.freedesktop.org
        ReportedBy: tom.whipple at intel.com


Consider the following three error cases:

1. foo.bar does not exist. "xdg-mime --info foo.bar" does not print any result.
Exit value is 0. We would expect an error message and non-zero exit.

2. foo.bar is a zero byte readable file. "xdg-mime --info foo.bar" prints
"text/plain". Is this the expected default behavior? If so, it should be stated.

3. foo.bar is a zero byte file with permissions 000. "xdg-mime --info foo.bar"
prints "application/octet-stream". We would expect an error message and non-zero
exit.

Environment is SUSE 10.0, Gnome 2.12.0          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Portland mailing list