Bug 29544 - incorrect exit status of blkid
: incorrect exit status of blkid
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/util-linux)
: unstable
: all Linux
: P3 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2013-10-30 21:45 by
Modified: 2017-04-03 00:39 (History)


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


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2013-10-30 21:45:34
Created an attachment (id=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 From 2017-04-03 00:39:39 -------
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).