diff options
author | rm160521 <none@none> | 2007-01-18 13:37:54 -0800 |
---|---|---|
committer | rm160521 <none@none> | 2007-01-18 13:37:54 -0800 |
commit | bf7c2d400a7b538aed6f356c7107284378a19fa8 (patch) | |
tree | 5ccbacc8a9301f75bd3fe46d0c8e133980d919d7 /usr/src/lib/libzfs/common/libzfs_dataset.c | |
parent | 49e92448e558772c002444c0d92e7a31d529d046 (diff) | |
download | illumos-joyent-bf7c2d400a7b538aed6f356c7107284378a19fa8.tar.gz |
6494654 zfs inherit can't handle property short names
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_dataset.c')
-rw-r--r-- | usr/src/lib/libzfs/common/libzfs_dataset.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c index 83e122452e..6d3330d0d5 100644 --- a/usr/src/lib/libzfs/common/libzfs_dataset.c +++ b/usr/src/lib/libzfs/common/libzfs_dataset.c @@ -1190,6 +1190,10 @@ zfs_prop_inherit(zfs_handle_t *zhp, const char *propname) if (!zfs_prop_valid_for_type(prop, zhp->zfs_type)) return (zfs_error(hdl, EZFS_PROPTYPE, errbuf)); + /* + * Normalize the name, to get rid of shorthand abbrevations. + */ + propname = zfs_prop_to_name(prop); (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value)); |