diff options
author | Brian Behlendorf <[email protected]> | 2016-02-05 18:41:22 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-02-08 09:37:55 -0800 |
commit | eea9309423d577d62cf62d1f98444e22e264ef15 (patch) | |
tree | 823e293a295b6ba39490f874decacc628a9056d3 /module/zfs/zfs_fm.c | |
parent | 6b42ea85903b5d96eddbe364e71636e6802d8da0 (diff) |
Prevent zpool_find_vdev() from truncating vdev path
When extracting tokens from the string strtok(2) is allowed to modify
the passed buffer. Therefore the zfs_strcmp_pathname() function must
make a copy of the passed string before passing it to strtok(3).
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #4312
Diffstat (limited to 'module/zfs/zfs_fm.c')
0 files changed, 0 insertions, 0 deletions