1 May 2010 01:06
Allowing veto files = /blah-blah-blah/ to contain \3 ...
Richard Sharpe <realrichardsharpe <at> gmail.com>
2010-04-30 23:06:28 GMT
2010-04-30 23:06:28 GMT
Hi,
In mixed environments (Mac and Windows) you don't want to veto /Icon?/
because iTunes needs to create files like Icon1 Icon2 etc.
However, if Mac users copy folders onto a Samba server that have
customized icons in them, they end up with a file called Icon\r.
We wanted to veto just these files.
The following patch allows you to do: veto files = /Icon\r/
--- ../rootfs-components/samba-3.4.4/source3/lib/util.c 2010-04-30
11:24:04.000000000 -0700
+++ samba-3.4.4/source3/lib/util.c 2010-04-30 16:02:44.000000000 -0700
<at> <at> -1708,6 +1708,36 <at> <at> bool is_in_path(const char *name, name_c
return False;
}
+/*
+ * This does an inplace conversion of \\ and \r to \ and 0x0D. Yes, it is
+ * O(n^2) but where it is used we don't care.
+ */
+static void convert_non_print(char * str)
+{
+ int i = 0;
+
+ if (str == NULL || strlen(str) == 0)
+ return;
+
(Continue reading)
RSS Feed