Package: mime-support
Version: 3.31-1
Severity: normal
File: /usr/bin/run-mailcap

I think if a file could not be read due to no sufficient permissions
this see should not return with error code 0.

Example:
[EMAIL PROTECTED] > see /etc/shadow
Warning: unknown mime-type for "/etc/shadow" -- using "application/*"
Error: no read permission for file "/etc/shadow"
[EMAIL PROTECTED] > echo $?
0
[EMAIL PROTECTED] >

Perhaps an exit code of 2 would make sense here (to distinguish it from
the can't handle file exit code 1)?

Greetings Ben


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: 
LC_ALL set to [EMAIL PROTECTED])

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to