6461510 admin: Throw a system error when 'open' fails on user-provided output

Authored and Committed by Erik Skultety 7 years ago
    admin: Throw a system error when 'open' fails on user-provided output
    
    There was an unhandled 'open' call which resulted in:
    
    "error: Library function returned error but did not set virError"
    
    Even if this happens during the daemon's start when we still don't have
    any set of outputs defined yet, we can safely report an error, since we
    automatically fallback to stderr which is fine even for both
    running as a daemonized process, since this happens before the daemon
    forks into the background, and running as a systemd service, since
    systemd re-directs std outputs to journald by default.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1436060
    
    Signed-off-by: Erik Skultety <eskultet@redhat.com>
    
        
file modified
+3 -1