Bug 29544 - incorrect exit status of blkid
Summary: incorrect exit status of blkid
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: util-linux (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 21:45 MSK by led
Modified: 2017-04-03 00:39 MSK (History)
6 users (show)

See Also:


Attachments
blkid: fix exit status when display version number (638 bytes, patch)
2013-10-30 21:45 MSK, led
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).