We do not properly check the return value of open() in the run_cmd() function in libadmin. The open() function will return -1 if the open failed. The if condition needs to check if the return value is <= 0 so if can bail out properly.
Created attachment 495832 [details]
Patch for cov#10812
Pushed to master. Thanks to Noriko for her reviews!
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 679 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
cc422c4..5a52f43 master -> master
coverity is clean - marking verified