From 53004a9345a3b6d743e273a405dc18d5136a3693 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 5 Sep 2011 03:52:48 +0200 Subject: [PATCH] xbmc: add patch to add tcp socket options and lock dir to smb Signed-off-by: Stephan Raue --- ..._tcp_socket_options_and_lock_dir_to_smb-0.1.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/mediacenter/xbmc/patches/xbmc-10.1-Dharma-041-add_tcp_socket_options_and_lock_dir_to_smb-0.1.patch diff --git a/packages/mediacenter/xbmc/patches/xbmc-10.1-Dharma-041-add_tcp_socket_options_and_lock_dir_to_smb-0.1.patch b/packages/mediacenter/xbmc/patches/xbmc-10.1-Dharma-041-add_tcp_socket_options_and_lock_dir_to_smb-0.1.patch new file mode 100644 index 0000000000..0c3089cb30 --- /dev/null +++ b/packages/mediacenter/xbmc/patches/xbmc-10.1-Dharma-041-add_tcp_socket_options_and_lock_dir_to_smb-0.1.patch @@ -0,0 +1,12 @@ +diff -Naur xbmc-10.1-Dharma/xbmc/FileSystem/FileSmb.cpp xbmc-10.1-Dharma.patch/xbmc/FileSystem/FileSmb.cpp +--- xbmc-10.1-Dharma/xbmc/FileSystem/FileSmb.cpp 2011-09-05 02:24:35.154994777 +0200 ++++ xbmc-10.1-Dharma.patch/xbmc/FileSystem/FileSmb.cpp 2011-09-05 02:22:55.604582159 +0200 +@@ -122,6 +122,8 @@ + // use the weaker LANMAN password hash in order to be compatible with older servers + fprintf(f, "\tclient lanman auth = yes\n"); + fprintf(f, "\tlanman auth = yes\n"); ++ fprintf(f, "\tsocket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536\n"); ++ fprintf(f, "\tlock directory = %s/.smb/\n", getenv("HOME")); + + // set wins server if there's one. name resolve order defaults to 'lmhosts host wins bcast'. + // if no WINS server has been specified the wins method will be ignored.