Bug 29544

Summary: incorrect exit status of blkid
Product: Sisyphus Reporter: led
Component: util-linuxAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P3 CC: boyarsh, glebfm, ldv, legion, mike, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
blkid: fix exit status when display version number none

Description led 2013-10-30 21:45:34 MSK
Created attachment 5984 [details]
blkid: fix exit status when display version number

$ /sbin/blkid -v; echo $?
blkid from util-linux 2.22.1 (libblkid 2.22.0, 10-Oct-2012)
4

Операция с ключом '-v' вполне легитимна, поэтому код выхода должен быть 0 (ноль).

P.S. Эта же ошибка проявляется на апстримных 2.22.2, 2.23
Comment 1 Repository Robot 2017-04-03 00:39:39 MSK
util-linux-2.29.2-alt1 -> sisyphus:

* Sun Apr 02 2017 Alexey Gladkov <legion@altlinux> 2.29.2-alt1
- New version (2.29.2).
- Fix `blkid -v` exit code (ALT#29544).
- Add fstrim service/timer (ALT#32687).
- Cleanup logger man-page (ALT#33152).