]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzfs/libzfs_sendrecv.c
Rebase master to b108
[mirror_zfs.git] / lib / libzfs / libzfs_sendrecv.c
index a3ed5cea8589b21feb79580a902e7fc783680d70..5a2e2aeb6d5350dedd4f518341398f779f984bb1 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -2077,7 +2077,7 @@ zfs_receive(libzfs_handle_t *hdl, const char *tosnap, recvflags_t flags,
 
        err = zfs_receive_impl(hdl, tosnap, flags, infd, stream_avl, &top_zfs);
 
-       if (err == 0 && top_zfs) {
+       if (err == 0 && !flags.nomount && top_zfs) {
                zfs_handle_t *zhp;
                prop_changelist_t *clp;