Bug 3379 - exit status is always 0
Summary: exit status is always 0
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: chrpath (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-16 17:45 MSK by at@altlinux.org
Modified: 2005-07-13 15:45 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description at@altlinux.org 2003-12-16 17:45:47 MSK
$ chrpath -d /dev/null; echo $?
reading header: Success
elf_open: Illegal seek
0
$
Comment 1 Dmitry V. Levin 2003-12-16 18:38:33 MSK
Fixed in chrpath-0.12-alt1. 
Comment 2 Michael Shigorin 2003-12-18 16:17:56 MSK
but why it should break if the patient doesn't need curing?

if it's a shell script (not ELF 32-bit LSB, okay) -- you'd just ignore it and
not bail out.

otherwise you require unneeded effort of choosing only ELF in a typical
binary/script mix being processed.
Comment 3 at@altlinux.org 2003-12-18 16:33:32 MSK
okay, what about /dev/null?
Comment 4 at@altlinux.org 2003-12-18 16:43:32 MSK
So I asked what about /dev/null.
Anyway, use shell smile.  It lets you take things easy.
chrpath -d %buildroot%_bindir/* ||:
Comment 5 at@altlinux.org 2003-12-19 16:33:26 MSK
Closed so far (see my previous comments here).
Comment 6 Michael Shigorin 2003-12-19 16:47:58 MSK
so be it