Michal Privoznik cb0c3a7066 virCommand: Make virCommandPassFDGetFDIndex fail if passed command is in error state
The idea of virCommand* APIs is that a possible error that
occurred while constructing cmd line is kept in virCommand
struct. If that's the case all subsequent calls to virCommand*()
are NO-OPs or they return an error. Well,
virCommandPassFDGetFDIndex() is not honoring that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2019-05-14 15:58:30 +02:00
..
2018-08-24 13:23:36 +02:00
2017-06-12 19:11:30 -04:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2017-12-05 11:28:19 +01:00
2019-02-14 14:09:38 +01:00
2018-05-29 15:42:03 +02:00