summaryrefslogtreecommitdiff
path: root/usr/src/lib/libzfs/common/libzfs_dataset.c
diff options
context:
space:
mode:
authoreschrock <none@none>2007-08-06 10:39:20 -0700
committereschrock <none@none>2007-08-06 10:39:20 -0700
commita10acbd6b2fd751eb85d16ec41398d20ff8c067e (patch)
tree04302fcf4d4d4478e555f7fa1c884bdb39a236fd /usr/src/lib/libzfs/common/libzfs_dataset.c
parent25851f53fe6178c0916e924acc5baae95d3c9937 (diff)
downloadillumos-gate-a10acbd6b2fd751eb85d16ec41398d20ff8c067e.tar.gz
4687827 dumpadm should be more tolerant of a read-only /etc/dumpadm.conf
6523156 putback for fork extensions missed libproc 6581088 typo in libipmi.h 6585258 zfs_rename() erroneously returns EZFS_CROSSTARGET 6587130 sunoem LED commands don't work correctly
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_dataset.c')
-rw-r--r--usr/src/lib/libzfs/common/libzfs_dataset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c
index 05c074437c..71cf382f26 100644
--- a/usr/src/lib/libzfs/common/libzfs_dataset.c
+++ b/usr/src/lib/libzfs/common/libzfs_dataset.c
@@ -4226,7 +4226,7 @@ zfs_rename(zfs_handle_t *zhp, const char *target, boolean_t recursive)
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"a child dataset already has a snapshot "
"with the new name"));
- (void) zfs_error(hdl, EZFS_CROSSTARGET, errbuf);
+ (void) zfs_error(hdl, EZFS_EXISTS, errbuf);
} else {
(void) zfs_standard_error(zhp->zfs_hdl, errno, errbuf);
}