s3: Attempt to fix the shadow_copy2 module
authorVolker Lendecke <vl@samba.org>
Tue, 30 Nov 2010 21:57:00 +0000 (22:57 +0100)
committerVolker Lendecke <vlendec@samba.org>
Wed, 1 Dec 2010 06:58:06 +0000 (07:58 +0100)
This module is from hell. Please make 100% sure that you did test it
properly when touching it! This module has probably given me more grey
hair than any other piece of Samba, so PLEASE PLEASE PLEASE be careful here!!!

source3/modules/vfs_shadow_copy2.c

index ba6b3441b86d5ccae1d23b6d2e5d15498d5f242e..f47b287ea587d97bce13d98f8e3277c640c94ae4 100644 (file)
@@ -671,10 +671,10 @@ static char *shadow_copy2_realpath(vfs_handle_struct *handle,
                copy[gmt - fname + 1] = '\0';
 
                DEBUG(10, ("calling NEXT_REALPATH with %s\n", copy));
-               SHADOW2_NEXT(REALPATH, (handle, copy), char *,
+               SHADOW2_NEXT(REALPATH, (handle, fname), char *,
                             NULL);
        }
-        SHADOW2_NEXT(REALPATH, (handle, name), char *, NULL);
+        SHADOW2_NEXT(REALPATH, (handle, fname), char *, NULL);
 }
 
 static const char *shadow_copy2_connectpath(struct vfs_handle_struct *handle,