Print this page
OS-5291 lxbrand inotify02 LTP regression
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
OS-3294 add support for inotify
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
        
@@ -20,11 +20,11 @@
  */
 
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
- * Copyright 2015 Joyent, Inc.
+ * Copyright 2016 Joyent, Inc.
  */
 
 #include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/systm.h>
@@ -824,12 +824,11 @@
                 }
         }
 
         if (error == 0) {
                 vnevent_rename_src(PCTOV(pcp), PCTOV(dp), snm, ctp);
-                if (dp != tdp)
-                        vnevent_rename_dest_dir(PCTOV(tdp), ctp);
+                vnevent_rename_dest_dir(PCTOV(tdp), PCTOV(pcp), tnm, ctp);
         }
 
 done:
         if (tpcp != NULL)
                 VN_RELE(PCTOV(tpcp));