Hi,

While looking for a possible source for some issues people have been having
with symlinks in shared folders, I realised that the code was freeing a path
that the inode creation code kept.  A patch for that is below, although I'm not
sure if it was the cause.  I intend to do some more thorough testing shortly.

I've also added a line to prompt the module to update the parent directory in
line with other directory altering functions.

  Brian
diff --git a/src/VBox/Additions/linux/sharedfolders/dirops.c b/src/VBox/Additions/linux/sharedfolders/dirops.c
index 5aa3c61..57c79ae 100644
--- a/src/VBox/Additions/linux/sharedfolders/dirops.c
+++ b/src/VBox/Additions/linux/sharedfolders/dirops.c
@@ -793,6 +793,10 @@ static int sf_symlink(struct inode *parent, struct dentry *dentry, const char *s
         goto fail2;
     }
 
+    sf_i->force_restat = 1;
+    kfree(ssymname);
+    return 0;
+
 fail2:
     kfree(ssymname);
 fail1:
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to