[Samba] 2.2.5, recycle: %U is ok, %u is not

Giulio Orsero giulioo at pobox.com
Thu Jun 20 13:01:02 GMT 2002


On Thu, 20 Jun 2002 19:37:26 +0200, Giulio Orsero <giulioo at pobox.com> wrote:

>name = <mypath>/%U
>in recycle.conf is ok, while using
>name = <mypath>/%u
>produces a dir
><mypath>/%u/deleted.item

--- recycle.c.orig      Thu Jun 20 21:16:26 2002
+++ recycle.c   Thu Jun 20 21:50:13 2002
@@ -256,6 +256,7 @@
                rc=pm_process( conf_file, do_section, do_parameter);
                DEBUG(10, ("pm_process returned %d\n", rc));
        }
+       standard_sub_conn( conn , current->recycle_bin);
        conn->vfs_private= (void *)current;
        return 0;
 }

The correct way would be to do it in do_parameter but I don't know where to
get conn inside it.
With this sub_basic is done twice on the recycle name, but it works.

-- 
giulioo at pobox.com




More information about the samba mailing list