Bug#273407: patch for update-alternatives typo

2005-01-20 Thread Scott James Remnant
On Thu, 2005-01-20 at 02:24 +0100, [EMAIL PROTECTED] wrote: > On line 170 : > ] elsif ($! != &ENOENT){ > should be > ] elsif ($| != &ENOENT){ > Perl documentation says: $! If used numerically, yields the current value of the C "errno" variable, or in other words, if a

Bug#273407: patch for update-alternatives typo

2005-01-19 Thread browaeys . alban
On line 170 : ] elsif ($! != &ENOENT){ should be ] elsif ($| != &ENOENT){ note the pipe instead of the exclamation mark. Right now it compares the error string "no such files ... "against ENOENT which is 2. $| is the way to retrieve the error value. This way the error "failed to open ..." is sh