]> granicus.if.org Git - zfs/commit
Fix coverity defects: CID 147639
authorGeLiXin <ge.lixin@zte.com.cn>
Mon, 10 Oct 2016 22:30:22 +0000 (06:30 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Oct 2016 22:30:22 +0000 (15:30 -0700)
commit8c8cf8a2d8567d00a93963b1d59a7bdc8cede06a
treea408d5a831505c8cfa36be29a64db0e7f6e4de82
parentd33931a83a33db4034186dfda6dcdd294ace2c75
Fix coverity defects: CID 147639

When array is passed as a parameter it degenerates into a
pointer so the sizeof(path) in is_shorthand_path() and always
get return value of 8, instead of the string length we want.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5198
cmd/zpool/zpool_vdev.c