Bug 3379

Summary: exit status is always 0
Product: Sisyphus Reporter: at <at>
Component: chrpathAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, mike, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

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