GeLiXin ed3ea30fb9 Fix coverity defects: CID 147536, 147537, 147538
coverity scan CID:147536, type: Argument cannot be negative
- may write or close fd which is negative
coverity scan CID:147537, type: Argument cannot be negative
- may call dup2 with a negative fd
coverity scan CID:147538, type: Argument cannot be negative
- may read or fchown with a negative fd

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5185
2016-09-30 15:40:07 -07:00
..
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00