diff options
| author | tomee <none@none> | 2006-11-03 20:28:35 -0800 |
|---|---|---|
| committer | tomee <none@none> | 2006-11-03 20:28:35 -0800 |
| commit | 389056bd4327caca73482e60b80da00f4eaf3de9 (patch) | |
| tree | 66ce787d48313eacb075aa5015a90858dab564e6 /usr/src | |
| parent | e81c57b154a93e76828db416c371f9683b271c08 (diff) | |
| download | illumos-joyent-389056bd4327caca73482e60b80da00f4eaf3de9.tar.gz | |
6489714 JNI: getDataset() returns null for pool snapshot name
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c b/usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c index 1b580a9078..59e3a0c1fa 100644 --- a/usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c +++ b/usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c @@ -588,7 +588,7 @@ is_fs_snapshot(zfs_handle_t *zhp) static int is_pool_name(const char *name) { - return (strchr(name, '/') == NULL); + return (strchr(name, '/') == NULL && strchr(name, '@') == NULL); } /* |
