s3:vfs/shadow_copy2 make descending sort order the default
authorChristian Ambach <ambi@samba.org>
Tue, 8 May 2012 07:11:36 +0000 (09:11 +0200)
committerChristian Ambach <ambi@samba.org>
Tue, 8 May 2012 07:26:07 +0000 (09:26 +0200)
otherwise Explorer won't work correctly when trying to restore a folder

source3/modules/vfs_shadow_copy2.c

index 24356ece1f976f2eb4702500a7e487814a6282c5..4efc0cad5722f31c3e37bba95e9bf3ce3e41e125 100644 (file)
@@ -1047,7 +1047,7 @@ static void shadow_copy2_sort_data(vfs_handle_struct *handle,
        const char *sort;
 
        sort = lp_parm_const_string(SNUM(handle->conn), "shadow",
-                                   "sort", NULL);
+                                   "sort", "desc");
        if (sort == NULL) {
                return;
        }