<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-13164</id>
	<title>Nabble - Samba - samba-technical</title>
	<updated>2008-10-11T06:51:40Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Samba---samba-technical-f13164.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba---samba-technical-f13164.html" />
	<subtitle type="html">Discussions on Samba internals. For general questions please subscribe to the list samba@samba.org</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19932756</id>
	<title>[PATCH] Change SMB_BIG_UINT to uint64_t</title>
	<published>2008-10-11T06:51:40Z</published>
	<updated>2008-10-11T06:51:40Z</updated>
	<author>
		<name>Jelmer Vernooij</name>
	</author>
	<content type="html">Since Samba 3 already requires {u,}int64_t to be around, it seems
&lt;br&gt;pointless to have a separate type for it anymore, and it ends up being a
&lt;br&gt;uint128_t (?) on 64-bit machines. This is one of the prerequisites of
&lt;br&gt;sharing fsusage() between Samba 3 and Samba 4, since Samba 4 uses
&lt;br&gt;uint64_t already.
&lt;br&gt;&lt;br&gt;The attached patch replaces all uses of SMB_BIG_{U,}INT with
&lt;br&gt;{u,}int64_t.
&lt;br&gt;&lt;br&gt;If nobody objects to this patch, I'll push it to the master branch in a
&lt;br&gt;couple of days.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jelmer
&lt;br&gt;-- 
&lt;br&gt;Jelmer Vernooij &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19932756&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;&amp;gt; - &lt;a href=&quot;http://samba.org/~jelmer/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~jelmer/&lt;/a&gt;&lt;br&gt;Jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19932756&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smb-big-uint-to-uint64.diff.bz2&lt;/strong&gt; (26K) &lt;a href=&quot;http://www.nabble.com/attachment/19932756/0/smb-big-uint-to-uint64.diff.bz2&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--Change-SMB_BIG_UINT-to-uint64_t-tp19932756p19932756.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19929215</id>
	<title>Re: [PATCH] Reconcile arc4 implementations</title>
	<published>2008-10-10T20:26:57Z</published>
	<updated>2008-10-10T20:26:57Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">On Sat, 2008-10-11 at 02:58 +0200, Jelmer Vernooij wrote:
&lt;br&gt;&amp;gt; The attached patch makes Samba 3 use the arc4 implementation from
&lt;br&gt;&amp;gt; lib/crypto. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think this is correct and it seems to work ok, but it would be nice if
&lt;br&gt;&amp;gt; somebody with a bit more crypto experience could give a quick look at
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&lt;br&gt;It certainly looks reasonable to me. &amp;nbsp;The NTLMSSP code (ntlmssp_sign.c
&lt;br&gt;in particular) should be pretty close between the two branches (and is
&lt;br&gt;perhaps a future target for merging.
&lt;br&gt;&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19929215/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--Reconcile-arc4-implementations-tp19928251p19929215.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19928251</id>
	<title>[PATCH] Reconcile arc4 implementations</title>
	<published>2008-10-10T17:58:31Z</published>
	<updated>2008-10-10T17:58:31Z</updated>
	<author>
		<name>Jelmer Vernooij</name>
	</author>
	<content type="html">The attached patch makes Samba 3 use the arc4 implementation from
&lt;br&gt;lib/crypto. 
&lt;br&gt;&lt;br&gt;I think this is correct and it seems to work ok, but it would be nice if
&lt;br&gt;somebody with a bit more crypto experience could give a quick look at
&lt;br&gt;it.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jelmer
&lt;br&gt;-- 
&lt;br&gt;Jelmer Vernooij &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19928251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;&amp;gt; - &lt;a href=&quot;http://samba.org/~jelmer/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~jelmer/&lt;/a&gt;&lt;br&gt;Jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19928251&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[arc4.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff --git a/source3/Makefile.in b/source3/Makefile.in
&lt;br&gt;index 8bee54d..09c054a 100644
&lt;br&gt;--- a/source3/Makefile.in
&lt;br&gt;+++ b/source3/Makefile.in
&lt;br&gt;@@ -330,8 +330,8 @@ LIB_OBJ = $(LIBSAMBAUTIL_OBJ) \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/substitute.o lib/fsusage.o lib/dbwrap_util.o \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
&lt;br&gt;-	 &amp;nbsp;../lib/crypto/md5.o ../lib/crypto/hmacmd5.o lib/arc4.o lib/iconv.o \
&lt;br&gt;-	 &amp;nbsp;lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
&lt;br&gt;+	 &amp;nbsp;../lib/crypto/md5.o ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
&lt;br&gt;+	 &amp;nbsp;lib/iconv.o lib/pam_errors.o intl/lang_tdb.o lib/conn_tdb.o \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/adt_tree.o lib/gencache.o \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/module.o lib/events.o lib/ldap_escape.o @CHARSET_STATIC@ \
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lib/secdesc.o lib/util_seaccess.o lib/secace.o lib/secacl.o \
&lt;br&gt;diff --git a/source3/include/includes.h b/source3/include/includes.h
&lt;br&gt;index 79495a7..0417a7e 100644
&lt;br&gt;--- a/source3/include/includes.h
&lt;br&gt;+++ b/source3/include/includes.h
&lt;br&gt;@@ -687,6 +687,7 @@ typedef char fstring[FSTRING_LEN];
&lt;br&gt;&amp;nbsp;#include &amp;quot;msdfs.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;rap.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;../lib/crypto/md5.h&amp;quot;
&lt;br&gt;+#include &amp;quot;../lib/crypto/arcfour.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;../lib/crypto/crc32.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;../lib/crypto/hmacmd5.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;ntlmssp.h&amp;quot;
&lt;br&gt;diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h
&lt;br&gt;index 3fb41c5..b014b21 100644
&lt;br&gt;--- a/source3/include/ntlmssp.h
&lt;br&gt;+++ b/source3/include/ntlmssp.h
&lt;br&gt;@@ -157,14 +157,14 @@ typedef struct ntlmssp_state
&lt;br&gt;&amp;nbsp;	unsigned char recv_sign_key[16];
&lt;br&gt;&amp;nbsp;	unsigned char recv_seal_key[16];
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	unsigned char send_seal_arc4_state[258];
&lt;br&gt;-	unsigned char recv_seal_arc4_state[258];
&lt;br&gt;+	struct arcfour_state send_seal_arc4_state;
&lt;br&gt;+	struct arcfour_state recv_seal_arc4_state;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	uint32 ntlm2_send_seq_num;
&lt;br&gt;&amp;nbsp;	uint32 ntlm2_recv_seq_num;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* ntlmv1 */
&lt;br&gt;-	unsigned char ntlmv1_arc4_state[258];
&lt;br&gt;+	struct arcfour_state ntlmv1_arc4_state;
&lt;br&gt;&amp;nbsp;	uint32 ntlmv1_seq_num;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* it turns out that we don't always get the
&lt;br&gt;diff --git a/source3/include/proto.h b/source3/include/proto.h
&lt;br&gt;index fc497b6..3df87a6 100644
&lt;br&gt;--- a/source3/include/proto.h
&lt;br&gt;+++ b/source3/include/proto.h
&lt;br&gt;@@ -315,11 +315,6 @@ int afs_syscall( int subcall,
&lt;br&gt;&amp;nbsp;bool afs_settoken_str(const char *token_string);
&lt;br&gt;&amp;nbsp;bool afs_settoken_str(const char *token_string);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-/* The following definitions come from lib/arc4.c &amp;nbsp;*/
&lt;br&gt;-
&lt;br&gt;-void smb_arc4_init(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen);
&lt;br&gt;-void smb_arc4_crypt(unsigned char arc4_state_inout[258], unsigned char *data, size_t len);
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;/* The following definitions come from lib/audit.c &amp;nbsp;*/
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;const char *audit_category_str(uint32 category);
&lt;br&gt;diff --git a/source3/lib/arc4.c b/source3/lib/arc4.c
&lt;br&gt;deleted file mode 100644
&lt;br&gt;index af2564b..0000000
&lt;br&gt;--- a/source3/lib/arc4.c
&lt;br&gt;+++ /dev/null
&lt;br&gt;@@ -1,79 +0,0 @@
&lt;br&gt;-/* 
&lt;br&gt;- &amp;nbsp; Unix SMB/CIFS implementation.
&lt;br&gt;-
&lt;br&gt;- &amp;nbsp; An implementation of arc4.
&lt;br&gt;-
&lt;br&gt;- &amp;nbsp; Copyright (C) Jeremy Allison 2005.
&lt;br&gt;- &amp;nbsp; 
&lt;br&gt;- &amp;nbsp; This program is free software; you can redistribute it and/or modify
&lt;br&gt;- &amp;nbsp; it under the terms of the GNU General Public License as published by
&lt;br&gt;- &amp;nbsp; the Free Software Foundation; either version 3 of the License, or
&lt;br&gt;- &amp;nbsp; (at your option) any later version.
&lt;br&gt;- &amp;nbsp; 
&lt;br&gt;- &amp;nbsp; This program is distributed in the hope that it will be useful,
&lt;br&gt;- &amp;nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of
&lt;br&gt;- &amp;nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &amp;nbsp;See the
&lt;br&gt;- &amp;nbsp; GNU General Public License for more details.
&lt;br&gt;- &amp;nbsp; 
&lt;br&gt;- &amp;nbsp; You should have received a copy of the GNU General Public License
&lt;br&gt;- &amp;nbsp; along with this program. &amp;nbsp;If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.
&lt;br&gt;-*/
&lt;br&gt;-
&lt;br&gt;-#include &amp;quot;includes.h&amp;quot;
&lt;br&gt;-
&lt;br&gt;-/*****************************************************************
&lt;br&gt;- Initialize state for an arc4 crypt/decrpyt.
&lt;br&gt;- arc4 state is 258 bytes - last 2 bytes are the index bytes.
&lt;br&gt;-*****************************************************************/
&lt;br&gt;-
&lt;br&gt;-void smb_arc4_init(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen)
&lt;br&gt;-{
&lt;br&gt;-	size_t ind;
&lt;br&gt;-	unsigned char j = 0;
&lt;br&gt;-
&lt;br&gt;-	for (ind = 0; ind &amp;lt; 256; ind++) {
&lt;br&gt;-		arc4_state_out[ind] = (unsigned char)ind;
&lt;br&gt;-	}
&lt;br&gt;-
&lt;br&gt;-	for( ind = 0; ind &amp;lt; 256; ind++) {
&lt;br&gt;-		unsigned char tc;
&lt;br&gt;-
&lt;br&gt;-		j += (arc4_state_out[ind] + key[ind%keylen]);
&lt;br&gt;-
&lt;br&gt;-		tc = arc4_state_out[ind];
&lt;br&gt;-		arc4_state_out[ind] = arc4_state_out[j];
&lt;br&gt;-		arc4_state_out[j] = tc;
&lt;br&gt;-	}
&lt;br&gt;-	arc4_state_out[256] = 0;
&lt;br&gt;-	arc4_state_out[257] = 0;
&lt;br&gt;-}
&lt;br&gt;-
&lt;br&gt;-/*****************************************************************
&lt;br&gt;- Do the arc4 crypt/decrpyt.
&lt;br&gt;- arc4 state is 258 bytes - last 2 bytes are the index bytes.
&lt;br&gt;-*****************************************************************/
&lt;br&gt;-
&lt;br&gt;-void smb_arc4_crypt(unsigned char arc4_state_inout[258], unsigned char *data, size_t len)
&lt;br&gt;-{
&lt;br&gt;-	unsigned char index_i = arc4_state_inout[256];
&lt;br&gt;-	unsigned char index_j = arc4_state_inout[257];
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;size_t ind;
&lt;br&gt;-
&lt;br&gt;-	for( ind = 0; ind &amp;lt; len; ind++) {
&lt;br&gt;-		unsigned char tc;
&lt;br&gt;-		unsigned char t;
&lt;br&gt;-
&lt;br&gt;-		index_i++;
&lt;br&gt;-		index_j += arc4_state_inout[index_i];
&lt;br&gt;-
&lt;br&gt;-		tc = arc4_state_inout[index_i];
&lt;br&gt;-		arc4_state_inout[index_i] = arc4_state_inout[index_j];
&lt;br&gt;-		arc4_state_inout[index_j] = tc;
&lt;br&gt;-
&lt;br&gt;-		t = arc4_state_inout[index_i] + arc4_state_inout[index_j];
&lt;br&gt;-		data[ind] = data[ind] ^ arc4_state_inout[t];
&lt;br&gt;-	}
&lt;br&gt;-
&lt;br&gt;-	arc4_state_inout[256] = index_i;
&lt;br&gt;-	arc4_state_inout[257] = index_j;
&lt;br&gt;-}
&lt;br&gt;diff --git a/source3/lib/genrand.c b/source3/lib/genrand.c
&lt;br&gt;index 4590b81..57314c5 100644
&lt;br&gt;--- a/source3/lib/genrand.c
&lt;br&gt;+++ b/source3/lib/genrand.c
&lt;br&gt;@@ -21,7 +21,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;quot;includes.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-static unsigned char smb_arc4_state[258];
&lt;br&gt;+static struct arcfour_state smb_arc4_state;
&lt;br&gt;&amp;nbsp;static uint32 counter;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static bool done_reseed = False;
&lt;br&gt;@@ -89,6 +89,7 @@ static void do_filehash(const char *fname, unsigned char *the_hash)
&lt;br&gt;&amp;nbsp;static int do_reseed(bool use_fd, int fd)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	unsigned char seed_inbuf[40];
&lt;br&gt;+	DATA_BLOB seed_blob = { seed_inbuf, 40 };
&lt;br&gt;&amp;nbsp;	uint32 v1, v2; struct timeval tval; pid_t mypid;
&lt;br&gt;&amp;nbsp;	struct passwd *pw;
&lt;br&gt;&amp;nbsp;	int reseed_data = 0;
&lt;br&gt;@@ -146,7 +147,7 @@ static int do_reseed(bool use_fd, int fd)
&lt;br&gt;&amp;nbsp;			seed_inbuf[i] ^= ((char *)(&amp;reseed_data))[i % sizeof(reseed_data)];
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	smb_arc4_init(smb_arc4_state, seed_inbuf, sizeof(seed_inbuf));
&lt;br&gt;+	arcfour_init(&amp;smb_arc4_state, &amp;seed_blob);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	return -1;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;@@ -190,7 +191,7 @@ void generate_random_buffer( unsigned char *out, int len)
&lt;br&gt;&amp;nbsp;	while(len &amp;gt; 0) {
&lt;br&gt;&amp;nbsp;		int copy_len = len &amp;gt; 16 ? 16 : len;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		smb_arc4_crypt(smb_arc4_state, md4_buf, sizeof(md4_buf));
&lt;br&gt;+		arcfour_crypt_sbox(&amp;smb_arc4_state, md4_buf, sizeof(md4_buf));
&lt;br&gt;&amp;nbsp;		mdfour(tmp_buf, md4_buf, sizeof(md4_buf));
&lt;br&gt;&amp;nbsp;		memcpy(p, tmp_buf, copy_len);
&lt;br&gt;&amp;nbsp;		p += copy_len;
&lt;br&gt;diff --git a/source3/libsmb/ntlmssp_sign.c b/source3/libsmb/ntlmssp_sign.c
&lt;br&gt;index 1abdf61..d3d358d 100644
&lt;br&gt;--- a/source3/libsmb/ntlmssp_sign.c
&lt;br&gt;+++ b/source3/libsmb/ntlmssp_sign.c
&lt;br&gt;@@ -35,6 +35,12 @@
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+static void dump_arc4_state(const char *description, 
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp;struct arcfour_state *state)
&lt;br&gt;+{
&lt;br&gt;+	dump_data_pw(description, state-&amp;gt;sbox, sizeof(state-&amp;gt;sbox));
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static void calc_ntlmv2_key(unsigned char subkey[16],
&lt;br&gt;&amp;nbsp;				DATA_BLOB session_key,
&lt;br&gt;&amp;nbsp;				const char *constant)
&lt;br&gt;@@ -101,10 +107,10 @@ static NTSTATUS ntlmssp_make_packet_signature(NTLMSSP_STATE *ntlmssp_state,
&lt;br&gt;&amp;nbsp;		if (encrypt_sig &amp;&amp; (ntlmssp_state-&amp;gt;neg_flags &amp; NTLMSSP_NEGOTIATE_KEY_EXCH)) {
&lt;br&gt;&amp;nbsp;			switch (direction) {
&lt;br&gt;&amp;nbsp;			case NTLMSSP_SEND:
&lt;br&gt;-				smb_arc4_crypt(ntlmssp_state-&amp;gt;send_seal_arc4_state, &amp;nbsp;digest, 8);
&lt;br&gt;+				arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;send_seal_arc4_state, digest, 8);
&lt;br&gt;&amp;nbsp;				break;
&lt;br&gt;&amp;nbsp;			case NTLMSSP_RECEIVE:
&lt;br&gt;-				smb_arc4_crypt(ntlmssp_state-&amp;gt;recv_seal_arc4_state, &amp;nbsp;digest, 8);
&lt;br&gt;+				arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;recv_seal_arc4_state, digest, 8);
&lt;br&gt;&amp;nbsp;				break;
&lt;br&gt;&amp;nbsp;			}
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;@@ -124,9 +130,8 @@ static NTSTATUS ntlmssp_make_packet_signature(NTLMSSP_STATE *ntlmssp_state,
&lt;br&gt;&amp;nbsp;		
&lt;br&gt;&amp;nbsp;		ntlmssp_state-&amp;gt;ntlmv1_seq_num++;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		dump_data_pw(&amp;quot;ntlmssp hash:\n&amp;quot;, ntlmssp_state-&amp;gt;ntlmv1_arc4_state,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; sizeof(ntlmssp_state-&amp;gt;ntlmv1_arc4_state));
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;ntlmv1_arc4_state, sig-&amp;gt;data+4, sig-&amp;gt;length-4);
&lt;br&gt;+		dump_arc4_state(&amp;quot;ntlmssp hash: \n&amp;quot;, &amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state, sig-&amp;gt;data+4, sig-&amp;gt;length-4);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	return NT_STATUS_OK;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;@@ -259,9 +264,9 @@ NTSTATUS ntlmssp_seal_packet(NTLMSSP_STATE *ntlmssp_state,
&lt;br&gt;&amp;nbsp;			return nt_status;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;send_seal_arc4_state, data, length);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;send_seal_arc4_state, data, length);
&lt;br&gt;&amp;nbsp;		if (ntlmssp_state-&amp;gt;neg_flags &amp; NTLMSSP_NEGOTIATE_KEY_EXCH) {
&lt;br&gt;-			smb_arc4_crypt(ntlmssp_state-&amp;gt;send_seal_arc4_state, sig-&amp;gt;data+4, 8);
&lt;br&gt;+			arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;send_seal_arc4_state, sig-&amp;gt;data+4, 8);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;&amp;nbsp;		uint32 crc;
&lt;br&gt;@@ -274,14 +279,14 @@ NTSTATUS ntlmssp_seal_packet(NTLMSSP_STATE *ntlmssp_state,
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; then seal the sequence number - this is becouse the ntlmv1_arc4_state is not
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; constant, but is is rather updated with each iteration */
&lt;br&gt;&amp;nbsp;		
&lt;br&gt;-		dump_data_pw(&amp;quot;ntlmv1 arc4 state:\n&amp;quot;, ntlmssp_state-&amp;gt;ntlmv1_arc4_state,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; sizeof(ntlmssp_state-&amp;gt;ntlmv1_arc4_state));
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;ntlmv1_arc4_state, data, length);
&lt;br&gt;+		dump_arc4_state(&amp;quot;ntlmv1 arc4 state:\n&amp;quot;, 
&lt;br&gt;+						&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state, data, length);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		dump_data_pw(&amp;quot;ntlmv1 arc4 state:\n&amp;quot;, ntlmssp_state-&amp;gt;ntlmv1_arc4_state,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; sizeof(ntlmssp_state-&amp;gt;ntlmv1_arc4_state));
&lt;br&gt;+		dump_arc4_state(&amp;quot;ntlmv1 arc4 state:\n&amp;quot;, 
&lt;br&gt;+						&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;ntlmv1_arc4_state, sig-&amp;gt;data+4, sig-&amp;gt;length-4);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state, sig-&amp;gt;data+4, sig-&amp;gt;length-4);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		ntlmssp_state-&amp;gt;ntlmv1_seq_num++;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;@@ -311,10 +316,10 @@ NTSTATUS ntlmssp_unseal_packet(NTLMSSP_STATE *ntlmssp_state,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (ntlmssp_state-&amp;gt;neg_flags &amp; NTLMSSP_NEGOTIATE_NTLM2) {
&lt;br&gt;&amp;nbsp;		/* First unseal the data. */
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;recv_seal_arc4_state, data, length);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;recv_seal_arc4_state, data, length);
&lt;br&gt;&amp;nbsp;		dump_data_pw(&amp;quot;ntlmv2 clear data\n&amp;quot;, data, length);
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;-		smb_arc4_crypt(ntlmssp_state-&amp;gt;ntlmv1_arc4_state, data, length);
&lt;br&gt;+		arcfour_crypt_sbox(&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state, data, length);
&lt;br&gt;&amp;nbsp;		dump_data_pw(&amp;quot;ntlmv1 clear data\n&amp;quot;, data, length);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	return ntlmssp_check_packet(ntlmssp_state, data, length, whole_pdu, pdu_length, sig);
&lt;br&gt;@@ -349,6 +354,7 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
&lt;br&gt;&amp;nbsp;		const char *send_seal_const;
&lt;br&gt;&amp;nbsp;		const char *recv_sign_const;
&lt;br&gt;&amp;nbsp;		const char *recv_seal_const;
&lt;br&gt;+		DATA_BLOB send_seal_key_blob, recv_seal_blob;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		switch (ntlmssp_state-&amp;gt;role) {
&lt;br&gt;&amp;nbsp;		case NTLMSSP_CLIENT:
&lt;br&gt;@@ -397,12 +403,13 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
&lt;br&gt;&amp;nbsp;		dump_data_pw(&amp;quot;NTLMSSP send seal key:\n&amp;quot;,
&lt;br&gt;&amp;nbsp;				ntlmssp_state-&amp;gt;send_seal_key, 16);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		smb_arc4_init(ntlmssp_state-&amp;gt;send_seal_arc4_state,
&lt;br&gt;-				ntlmssp_state-&amp;gt;send_seal_key, 16);
&lt;br&gt;+		send_seal_key_blob.data = ntlmssp_state-&amp;gt;send_seal_key;
&lt;br&gt;+		send_seal_key_blob.length = 16;
&lt;br&gt;+		arcfour_init(&amp;ntlmssp_state-&amp;gt;send_seal_arc4_state, 
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;send_seal_key_blob);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		dump_data_pw(&amp;quot;NTLMSSP send seal arc4 state:\n&amp;quot;, 
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; ntlmssp_state-&amp;gt;send_seal_arc4_state, 
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; sizeof(ntlmssp_state-&amp;gt;send_seal_arc4_state));
&lt;br&gt;+		dump_arc4_state(&amp;quot;NTLMSSP send seal arc4 state:\n&amp;quot;, 
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;ntlmssp_state-&amp;gt;send_seal_arc4_state);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		/* RECV: sign key */
&lt;br&gt;&amp;nbsp;		calc_ntlmv2_key(ntlmssp_state-&amp;gt;recv_sign_key,
&lt;br&gt;@@ -417,12 +424,13 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
&lt;br&gt;&amp;nbsp;		dump_data_pw(&amp;quot;NTLMSSP recv seal key:\n&amp;quot;,
&lt;br&gt;&amp;nbsp;				ntlmssp_state-&amp;gt;recv_seal_key, 16);
&lt;br&gt;&amp;nbsp;				
&lt;br&gt;-		smb_arc4_init(ntlmssp_state-&amp;gt;recv_seal_arc4_state,
&lt;br&gt;-				ntlmssp_state-&amp;gt;recv_seal_key, 16);
&lt;br&gt;+		recv_seal_blob.data = ntlmssp_state-&amp;gt;recv_seal_key;
&lt;br&gt;+		recv_seal_blob.length = 16;
&lt;br&gt;+		arcfour_init(&amp;ntlmssp_state-&amp;gt;recv_seal_arc4_state,
&lt;br&gt;+				&amp;recv_seal_blob);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		dump_data_pw(&amp;quot;NTLMSSP recv seal arc4 state:\n&amp;quot;, 
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; ntlmssp_state-&amp;gt;recv_seal_arc4_state, 
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; sizeof(ntlmssp_state-&amp;gt;recv_seal_arc4_state));
&lt;br&gt;+		dump_arc4_state(&amp;quot;NTLMSSP recv seal arc4 state:\n&amp;quot;, 
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;ntlmssp_state-&amp;gt;recv_seal_arc4_state);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		ntlmssp_state-&amp;gt;ntlm2_send_seq_num = 0;
&lt;br&gt;&amp;nbsp;		ntlmssp_state-&amp;gt;ntlm2_recv_seq_num = 0;
&lt;br&gt;@@ -454,11 +462,11 @@ NTSTATUS ntlmssp_sign_init(NTLMSSP_STATE *ntlmssp_state)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		DEBUG(5, (&amp;quot;NTLMSSP Sign/Seal - using NTLM1\n&amp;quot;));
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		smb_arc4_init(ntlmssp_state-&amp;gt;ntlmv1_arc4_state,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; weak_session_key.data, weak_session_key.length);
&lt;br&gt;+		arcfour_init(&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state, 
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;weak_session_key);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dump_data_pw(&amp;quot;NTLMv1 arc4 state:\n&amp;quot;, ntlmssp_state-&amp;gt;ntlmv1_arc4_state,
&lt;br&gt;-				sizeof(ntlmssp_state-&amp;gt;ntlmv1_arc4_state));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dump_arc4_state(&amp;quot;NTLMv1 arc4 state:\n&amp;quot;, 
&lt;br&gt;+				&amp;ntlmssp_state-&amp;gt;ntlmv1_arc4_state);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		ntlmssp_state-&amp;gt;ntlmv1_seq_num = 0;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
&lt;br&gt;index 98d5cd0..76779e2 100644
&lt;br&gt;--- a/source3/libsmb/smbdes.c
&lt;br&gt;+++ b/source3/libsmb/smbdes.c
&lt;br&gt;@@ -388,18 +388,19 @@ void des_crypt112_16(unsigned char out[16], unsigned char in[16], const unsigned
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;void SamOEMhash( unsigned char *data, const unsigned char key[16], size_t len)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	unsigned char arc4_state[258];
&lt;br&gt;+	struct arcfour_state arc4_state;
&lt;br&gt;+	DATA_BLOB keyblob = { key, 16 };
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	smb_arc4_init(arc4_state, key, 16);
&lt;br&gt;-	smb_arc4_crypt(arc4_state, data, len);
&lt;br&gt;+	arcfour_init(&amp;arc4_state, &amp;keyblob);
&lt;br&gt;+	arcfour_crypt_sbox(&amp;arc4_state, data, len);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;void SamOEMhashBlob( unsigned char *data, size_t len, DATA_BLOB *key)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	unsigned char arc4_state[258];
&lt;br&gt;+	struct arcfour_state arc4_state;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	smb_arc4_init(arc4_state, key-&amp;gt;data, key-&amp;gt;length);
&lt;br&gt;-	smb_arc4_crypt(arc4_state, data, len);
&lt;br&gt;+	arcfour_init(&amp;arc4_state, key);
&lt;br&gt;+	arcfour_crypt_sbox(&amp;arc4_state, data, len);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/* Decode a sam password hash into a password. &amp;nbsp;The password hash is the
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--Reconcile-arc4-implementations-tp19928251p19928251.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19926069</id>
	<title>Re: [SAMBA4] Moving ldaps tests to slow tests?</title>
	<published>2008-10-10T14:01:53Z</published>
	<updated>2008-10-10T14:01:53Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">On Fri, 2008-10-10 at 22:21 +0200, Jelmer Vernooij wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, 2008-10-11 at 03:55 +1100, Andrew Bartlett wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Fri, 2008-10-10 at 16:16 +0200, Jelmer Vernooij wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; For quite some time I have had to comment out or disable TLS in order to
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; be able to run the Samba 4 testsuite - without it the tests hang on the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ldaps tests. Apparently generating the certificates is very slow (it
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sometimes only aborts after about an hour). 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Would anybody object if I moved the TLS tests to the list of slow tests,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; at least for the time being?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; No, this is because you are using a (buggy?) GnuTLS 2.0. &amp;nbsp;We need to
&lt;br&gt;&amp;gt; &amp;gt; detect it, and disable GnuTLS in this case. &amp;nbsp;
&lt;br&gt;&amp;gt; Any bug report you can point me at? I'm running the latest version from
&lt;br&gt;&amp;gt; Debian experimental.
&lt;/div&gt;&lt;/div&gt;This is the bug I filed against Fedora on the topic:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=436228&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=436228&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19926069/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-SAMBA4--Moving-ldaps-tests-to-slow-tests--tp19919240p19926069.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19925709</id>
	<title>Re: [OT] Re: Samba and OpenVPN: where are file access delays coming from?</title>
	<published>2008-10-10T13:36:31Z</published>
	<updated>2008-10-10T13:36:31Z</updated>
	<author>
		<name>Christopher R. Hertel</name>
	</author>
	<content type="html">You can also get some info in the Intro section here:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://ubiqx.org/cifs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ubiqx.org/cifs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Nick Boyce wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [sorry for the OT diversion ... I'll take it to samba@lists for any
&lt;br&gt;&amp;gt; further mails]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, Oct 6, 2008 at 5:16 PM, Scott Lovenberg
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925709&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Nick Boyce wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; why's it called &amp;quot;Common Internet File System&amp;quot; then ???!?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Was that name just born of delusions of grandeur ?
&lt;br&gt;&amp;gt;&amp;gt; To (painfully) (mis)quote Jeremy Allison from his Google tech. talk on Samba.
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;It's called CIFS; Common Internet File System. &amp;nbsp;It has nothing to do with the internet.
&lt;br&gt;&amp;gt;&amp;gt; It is not a file system, and it is certainly not common.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Google the tech talk, it's about an hour long, but really, really interesting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks :) &amp;nbsp; That clarified things a /lot/ for me.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; BTW: I've spent a week of spare time trying to find a Jeremy A
&lt;br&gt;&amp;gt; Google-Tech-Talk on CIFS/Samba, but all I can find so far is this
&lt;br&gt;&amp;gt; Google SoC &amp;quot;CIFS Workshop&amp;quot; podcast from October 2007 :
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://google-code-updates.blogspot.com/2007/10/google-hosts-cifs-workshop.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google-code-updates.blogspot.com/2007/10/google-hosts-cifs-workshop.html&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://google-developer-podcast.googlecode.com/files/gsocpodcast014.ogg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google-developer-podcast.googlecode.com/files/gsocpodcast014.ogg&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If anyone actually has a link for this talk I'd be grateful ... but I
&lt;br&gt;&amp;gt; know you all have better things to do here.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; Nick Boyce
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Who are you going to believe - me or your own eyes?
&lt;br&gt;&amp;gt; &amp;nbsp;-- Groucho Marx
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;quot;Implementing CIFS - the Common Internet FileSystem&amp;quot; &amp;nbsp; &amp;nbsp;ISBN: 013047116X
&lt;br&gt;Samba Team -- &lt;a href=&quot;http://www.samba.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.samba.org/&lt;/a&gt;&amp;nbsp; &amp;nbsp; -)----- &amp;nbsp; &amp;nbsp; Christopher R. Hertel
&lt;br&gt;jCIFS Team -- &lt;a href=&quot;http://jcifs.samba.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jcifs.samba.org/&lt;/a&gt;&amp;nbsp; -)----- &amp;nbsp;ubiqx development, uninq
&lt;br&gt;ubiqx Team -- &lt;a href=&quot;http://www.ubiqx.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ubiqx.org/&lt;/a&gt;&amp;nbsp; &amp;nbsp; -)----- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925709&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;crh@...&lt;/a&gt;
&lt;br&gt;OnLineBook -- &lt;a href=&quot;http://ubiqx.org/cifs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ubiqx.org/cifs/&lt;/a&gt;&amp;nbsp; &amp;nbsp;-)----- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925709&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;crh@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba-and-OpenVPN%3A-where-are-file-access-delays-coming-from--tp19643241p19925709.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19925508</id>
	<title>[OT] Re: Samba and OpenVPN: where are file access delays coming from?</title>
	<published>2008-10-10T13:24:20Z</published>
	<updated>2008-10-10T13:24:20Z</updated>
	<author>
		<name>Nick Boyce</name>
	</author>
	<content type="html">[sorry for the OT diversion ... I'll take it to samba@lists for any
&lt;br&gt;further mails]
&lt;br&gt;&lt;br&gt;On Mon, Oct 6, 2008 at 5:16 PM, Scott Lovenberg
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Nick Boyce wrote:
&lt;br&gt;&amp;gt;&amp;gt; why's it called &amp;quot;Common Internet File System&amp;quot; then ???!?
&lt;br&gt;&amp;gt;&amp;gt; Was that name just born of delusions of grandeur ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To (painfully) (mis)quote Jeremy Allison from his Google tech. talk on Samba.
&lt;br&gt;&amp;gt; &amp;quot;It's called CIFS; Common Internet File System. &amp;nbsp;It has nothing to do with the internet.
&lt;br&gt;&amp;gt; It is not a file system, and it is certainly not common.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Google the tech talk, it's about an hour long, but really, really interesting.
&lt;br&gt;&lt;br&gt;Thanks :) &amp;nbsp; That clarified things a /lot/ for me.
&lt;br&gt;&lt;br&gt;BTW: I've spent a week of spare time trying to find a Jeremy A
&lt;br&gt;Google-Tech-Talk on CIFS/Samba, but all I can find so far is this
&lt;br&gt;Google SoC &amp;quot;CIFS Workshop&amp;quot; podcast from October 2007 :
&lt;br&gt;&lt;a href=&quot;http://google-code-updates.blogspot.com/2007/10/google-hosts-cifs-workshop.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google-code-updates.blogspot.com/2007/10/google-hosts-cifs-workshop.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://google-developer-podcast.googlecode.com/files/gsocpodcast014.ogg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google-developer-podcast.googlecode.com/files/gsocpodcast014.ogg&lt;/a&gt;&lt;br&gt;&lt;br&gt;If anyone actually has a link for this talk I'd be grateful ... but I
&lt;br&gt;know you all have better things to do here.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Nick Boyce
&lt;br&gt;--
&lt;br&gt;Who are you going to believe - me or your own eyes?
&lt;br&gt;&amp;nbsp;-- Groucho Marx
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba-and-OpenVPN%3A-where-are-file-access-delays-coming-from--tp19643241p19925508.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19925466</id>
	<title>Re: [SAMBA4] Moving ldaps tests to slow tests?</title>
	<published>2008-10-10T13:21:40Z</published>
	<updated>2008-10-10T13:21:40Z</updated>
	<author>
		<name>Jelmer Vernooij</name>
	</author>
	<content type="html">On Sat, 2008-10-11 at 03:55 +1100, Andrew Bartlett wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2008-10-10 at 16:16 +0200, Jelmer Vernooij wrote:
&lt;br&gt;&amp;gt; &amp;gt; For quite some time I have had to comment out or disable TLS in order to
&lt;br&gt;&amp;gt; &amp;gt; be able to run the Samba 4 testsuite - without it the tests hang on the
&lt;br&gt;&amp;gt; &amp;gt; ldaps tests. Apparently generating the certificates is very slow (it
&lt;br&gt;&amp;gt; &amp;gt; sometimes only aborts after about an hour). 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Would anybody object if I moved the TLS tests to the list of slow tests,
&lt;br&gt;&amp;gt; &amp;gt; at least for the time being?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No, this is because you are using a (buggy?) GnuTLS 2.0. &amp;nbsp;We need to
&lt;br&gt;&amp;gt; detect it, and disable GnuTLS in this case. &amp;nbsp;
&lt;/div&gt;Any bug report you can point me at? I'm running the latest version from
&lt;br&gt;Debian experimental.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jelmer
&lt;br&gt;-- 
&lt;br&gt;Jelmer Vernooij &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925466&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;&amp;gt; - &lt;a href=&quot;http://samba.org/~jelmer/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~jelmer/&lt;/a&gt;&lt;br&gt;Jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19925466&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-SAMBA4--Moving-ldaps-tests-to-slow-tests--tp19919240p19925466.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19922130</id>
	<title>Re: [SAMBA4] Moving ldaps tests to slow tests?</title>
	<published>2008-10-10T09:55:55Z</published>
	<updated>2008-10-10T09:55:55Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">On Fri, 2008-10-10 at 16:16 +0200, Jelmer Vernooij wrote:
&lt;br&gt;&amp;gt; For quite some time I have had to comment out or disable TLS in order to
&lt;br&gt;&amp;gt; be able to run the Samba 4 testsuite - without it the tests hang on the
&lt;br&gt;&amp;gt; ldaps tests. Apparently generating the certificates is very slow (it
&lt;br&gt;&amp;gt; sometimes only aborts after about an hour). 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would anybody object if I moved the TLS tests to the list of slow tests,
&lt;br&gt;&amp;gt; at least for the time being?
&lt;br&gt;&lt;br&gt;No, this is because you are using a (buggy?) GnuTLS 2.0. &amp;nbsp;We need to
&lt;br&gt;detect it, and disable GnuTLS in this case. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19922130/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-SAMBA4--Moving-ldaps-tests-to-slow-tests--tp19919240p19922130.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19919240</id>
	<title>[SAMBA4] Moving ldaps tests to slow tests?</title>
	<published>2008-10-10T07:16:50Z</published>
	<updated>2008-10-10T07:16:50Z</updated>
	<author>
		<name>Jelmer Vernooij</name>
	</author>
	<content type="html">For quite some time I have had to comment out or disable TLS in order to
&lt;br&gt;be able to run the Samba 4 testsuite - without it the tests hang on the
&lt;br&gt;ldaps tests. Apparently generating the certificates is very slow (it
&lt;br&gt;sometimes only aborts after about an hour). 
&lt;br&gt;&lt;br&gt;Would anybody object if I moved the TLS tests to the list of slow tests,
&lt;br&gt;at least for the time being?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jelmer
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jelmer Vernooij &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19919240&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;&amp;gt; - &lt;a href=&quot;http://samba.org/~jelmer/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~jelmer/&lt;/a&gt;&lt;br&gt;Jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19919240&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jelmer@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-SAMBA4--Moving-ldaps-tests-to-slow-tests--tp19919240p19919240.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19915436</id>
	<title>Configure issues</title>
	<published>2008-10-10T02:53:27Z</published>
	<updated>2008-10-10T02:53:27Z</updated>
	<author>
		<name>Jamieson, Peter</name>
	</author>
	<content type="html">checking netinet/ip.h usability... no
&lt;br&gt;checking netinet/ip.h presence... yes
&lt;br&gt;configure: WARNING: netinet/ip.h: present but cannot be compiled
&lt;br&gt;configure: WARNING: netinet/ip.h: &amp;nbsp; &amp;nbsp; check for missing prerequisite headers?
&lt;br&gt;configure: WARNING: netinet/ip.h: see the Autoconf documentation
&lt;br&gt;configure: WARNING: netinet/ip.h: &amp;nbsp; &amp;nbsp; section &amp;quot;Present But Cannot Be Compiled&amp;quot;
&lt;br&gt;configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
&lt;br&gt;configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence
&lt;br&gt;configure: WARNING: &amp;nbsp; &amp;nbsp; ## ---------------------------------------- ##
&lt;br&gt;configure: WARNING: &amp;nbsp; &amp;nbsp; ## Report this to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19915436&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;samba-technical@...&lt;/a&gt; ##
&lt;br&gt;configure: WARNING: &amp;nbsp; &amp;nbsp; ## ---------------------------------------- ##
&lt;br&gt;checking for netinet/ip.h... yes
&lt;br&gt;&lt;br&gt;Peter M Jamieson
&lt;br&gt;Staff Engineer, Consulting Services (International)
&lt;br&gt;Intervoice
&lt;br&gt;&lt;br&gt;P: +44 (0)161 495 1186
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19915436&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter.jamieson@...&lt;/a&gt;
&lt;br&gt;Please note my email address has changed
&lt;br&gt;&lt;br&gt;This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. &amp;nbsp;If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments.
&lt;br&gt;&lt;br&gt;Intervoice, Inc. 17811 Waterview Parkway Dallas, TX 75252 USA
&lt;br&gt;&lt;br&gt;Intervoice Limited, Registered in England and Wales with number 2601740, 50 Park Road, Gatley, Cheshire, SK8 4HZ. VAT Number: 560421375
&lt;br&gt;&lt;br&gt;Intervoice GmbH, Hagenauer Stra?e 55, 65203 Wiesbaden, Sitz der Gesellschaft: Wiesbaden, Handelsregister: HRB 8186 (Amtsgericht Wiesbaden), Gesch?ftsf?hrer: Wayne Barclay, Steffen Selbmann
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Configure-issues-tp19915436p19915436.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19913214</id>
	<title>How to make a Samba3 or Samba4 release from master</title>
	<published>2008-10-10T00:18:15Z</published>
	<updated>2008-10-10T00:18:15Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">As we start using the merged tree, I wanted to get some input from the
&lt;br&gt;list on the best way to make a release. 
&lt;br&gt;&lt;br&gt;It seems to me that a release of Samba has 3 goals
&lt;br&gt;&amp;nbsp;- a defined snapshot of known-good quality
&lt;br&gt;&amp;nbsp;- an easy, preconfigured (autogen.sh is already run) source tree from
&lt;br&gt;which to build
&lt;br&gt;&amp;nbsp;- the basis for binary packages for distributions.
&lt;br&gt;&lt;br&gt;Into these goals come our now rather more conflicted working
&lt;br&gt;environment.
&lt;br&gt;&lt;br&gt;At the time of a Samba3 release
&lt;br&gt;&amp;nbsp;- Samba3 may be stable, but the Samba4 tree in the same repository may
&lt;br&gt;not be
&lt;br&gt;&amp;nbsp;- Documents, source code and similar will refer to features not found
&lt;br&gt;in Samba3
&lt;br&gt;&lt;br&gt;Similarly, at a Samba4 preview release
&lt;br&gt;&amp;nbsp;- Samba3 will be at an intermediate state in it's release cycle
&lt;br&gt;&amp;nbsp;- Documents and source code will refer to Samba3's smbd and tools. 
&lt;br&gt;&lt;br&gt;Even if these are not significant issues, how is a user of the tarball
&lt;br&gt;to know which (source3 or source4) directory to use, and what directions
&lt;br&gt;should they follow?
&lt;br&gt;&lt;br&gt;I'm proposing that we should setup the release to only contain files
&lt;br&gt;pertaining to that release - ie, 'rm -rf source3' in the Samba4
&lt;br&gt;mkrelease.sh script (naturally also removing other Samba3-only files). 
&lt;br&gt;&lt;br&gt;Comments?
&lt;br&gt;&lt;br&gt;Andrew Bartlett
&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19913214/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-make-a-Samba3-or-Samba4-release-from-master-tp19913214p19913214.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19912594</id>
	<title>Re: Samba 4 best file system suit with?</title>
	<published>2008-10-09T23:06:06Z</published>
	<updated>2008-10-09T23:06:06Z</updated>
	<author>
		<name>David Disseldorp</name>
	</author>
	<content type="html">On Sat, 4 Oct 2008 03:46:49 +0000 (GMT)
&lt;br&gt;ogy_hpower &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19912594&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ogy_hpower@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; While testing the system, i'm facing problem xfs. Maybe this out of the lists; but really need your advice.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm sharing xfs using samba; the prblm is ;it's become very slow after i create a snapshot. This problem occurred during creating new files like i copy 2 or 3 gb files dump to the xfs directory. but for browsing directory it doesn't have pblm. So based on experienced; what should you advice me? since i'm using snapshot for the shadow copy. 
&lt;br&gt;&lt;br&gt;How is your snapshot being taken?
&lt;br&gt;&lt;br&gt;Freezing with xfs_freeze -f or XFS_IOC_FREEZE, results in all dirty data,
&lt;br&gt;metadata, and log information being written to disk. This can take some
&lt;br&gt;time depending on FS activity.
&lt;br&gt;&lt;br&gt;Processes attempting to write to the filesystem while frozen will block,
&lt;br&gt;until the filesystem is unfrozen (xfs_freeze -u or XFS_IOC_THAW).
&lt;br&gt;&lt;br&gt;Cheers, Dave
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba-4-best-file-system-suit-with--tp19808804p19912594.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19912391</id>
	<title>Re: Samba 4 best file system suit with?</title>
	<published>2008-10-09T22:47:35Z</published>
	<updated>2008-10-09T22:47:35Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">On Sat, 2008-10-04 at 03:46 +0000, ogy_hpower wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi Andrew,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; While testing the system, i'm facing problem xfs. Maybe this out of
&lt;br&gt;&amp;gt; the lists; but really need your advice.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm sharing xfs using samba; the prblm is ;it's become very slow after
&lt;br&gt;&amp;gt; i create a snapshot. This problem occurred during creating new files
&lt;br&gt;&amp;gt; like i copy 2 or 3 gb files dump to the xfs directory. but for
&lt;br&gt;&amp;gt; browsing directory it doesn't have pblm. So based on experienced; what
&lt;br&gt;&amp;gt; should you advice me? since i'm using snapshot for the shadow copy. 
&lt;/div&gt;&lt;/div&gt;Have you isolated the problem between Samba4 and other direct
&lt;br&gt;file-system access?
&lt;br&gt;&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19912391/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba-4-best-file-system-suit-with--tp19808804p19912391.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19908644</id>
	<title>Re: EINTR problem in async_smb.c</title>
	<published>2008-10-09T15:35:23Z</published>
	<updated>2008-10-09T15:35:23Z</updated>
	<author>
		<name>Jeremy Allison</name>
	</author>
	<content type="html">On Fri, Oct 10, 2008 at 12:31:02AM +0200, Volker Lendecke wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Oct 09, 2008 at 03:21:10PM -0700, Jeremy Allison wrote:
&lt;br&gt;&amp;gt; &amp;gt; 	I think the following patch is needed
&lt;br&gt;&amp;gt; &amp;gt; in async_smb.c to prevent problems with signal
&lt;br&gt;&amp;gt; &amp;gt; delivery when called from smbd (or other signal
&lt;br&gt;&amp;gt; &amp;gt; handling programs).
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Can you comment please ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; While I hate the fact that you can't just Ctrl-C programs
&lt;br&gt;&amp;gt; using sys_recv, probably you're right. Handling EINTR
&lt;br&gt;&amp;gt; properly everywhere is a bigger change.
&lt;/div&gt;&lt;br&gt;Ok, thanks - I'll commit. I was working on a similar
&lt;br&gt;piece of code using your async ideas and needed an
&lt;br&gt;example :-).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jeremy.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EINTR-problem-in-async_smb.c-tp19908468p19908644.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19908535</id>
	<title>Re: EINTR problem in async_smb.c</title>
	<published>2008-10-09T15:28:02Z</published>
	<updated>2008-10-09T15:28:02Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Thu, Oct 09, 2008 at 03:21:10PM -0700, Jeremy Allison wrote:
&lt;br&gt;&amp;gt; 	I think the following patch is needed
&lt;br&gt;&amp;gt; in async_smb.c to prevent problems with signal
&lt;br&gt;&amp;gt; delivery when called from smbd (or other signal
&lt;br&gt;&amp;gt; handling programs).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can you comment please ?
&lt;br&gt;&lt;br&gt;While I hate the fact that you can't just Ctrl-C programs
&lt;br&gt;using sys_recv, probably you're right. Handling EINTR
&lt;br&gt;properly everywhere is a bigger change.
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19908535/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EINTR-problem-in-async_smb.c-tp19908468p19908535.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19908468</id>
	<title>EINTR problem in async_smb.c</title>
	<published>2008-10-09T15:21:10Z</published>
	<updated>2008-10-09T15:21:10Z</updated>
	<author>
		<name>Jeremy Allison</name>
	</author>
	<content type="html">Volker,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I think the following patch is needed
&lt;br&gt;in async_smb.c to prevent problems with signal
&lt;br&gt;delivery when called from smbd (or other signal
&lt;br&gt;handling programs).
&lt;br&gt;&lt;br&gt;Can you comment please ?
&lt;br&gt;&lt;br&gt;Jeremy.
&lt;br&gt;&lt;br /&gt;diff --git a/source/libsmb/async_smb.c b/source/libsmb/async_smb.c
&lt;br&gt;index 9346264..935ae47 100644
&lt;br&gt;--- a/source/libsmb/async_smb.c
&lt;br&gt;+++ b/source/libsmb/async_smb.c
&lt;br&gt;@@ -360,7 +360,7 @@ static void cli_state_handler(struct event_context *event_ctx,
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		cli-&amp;gt;evt_inbuf = tmp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		res = recv(cli-&amp;gt;fd, cli-&amp;gt;evt_inbuf + old_size, available, 0);
&lt;br&gt;+		res = sys_recv(cli-&amp;gt;fd, cli-&amp;gt;evt_inbuf + old_size, available, 0);
&lt;br&gt;&amp;nbsp;		if (res == -1) {
&lt;br&gt;&amp;nbsp;			DEBUG(10, (&amp;quot;recv failed: %s\n&amp;quot;, strerror(errno)));
&lt;br&gt;&amp;nbsp;			status = map_nt_error_from_unix(errno);
&lt;br&gt;@@ -404,7 +404,7 @@ static void cli_state_handler(struct event_context *event_ctx,
&lt;br&gt;&amp;nbsp;			return;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		sent = send(cli-&amp;gt;fd, req-&amp;gt;outbuf + req-&amp;gt;sent,
&lt;br&gt;+		sent = sys_send(cli-&amp;gt;fd, req-&amp;gt;outbuf + req-&amp;gt;sent,
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;to_send - req-&amp;gt;sent, 0);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		if (sent &amp;lt; 0) {
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EINTR-problem-in-async_smb.c-tp19908468p19908468.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19907619</id>
	<title>Re: [SCM] Samba Shared Repository - branch master updated - 439086099ad97a49c93102af1e6edafabea64b6f</title>
	<published>2008-10-09T14:20:10Z</published>
	<updated>2008-10-09T14:20:10Z</updated>
	<author>
		<name>Andrew Bartlett</name>
	</author>
	<content type="html">On Mon, 2008-10-06 at 02:57 -0500, Volker Lendecke wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The branch, master has been updated
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;via &amp;nbsp;439086099ad97a49c93102af1e6edafabea64b6f (commit)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;via &amp;nbsp;2f6026248ec9a84f6a263622f1753e98c89eb543 (commit)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;via &amp;nbsp;f3ba7fc0b973ea66ee57fe0e1be73b3bcefc07fb (commit)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; from &amp;nbsp;bb4e9d72dd7de46ae4635ff5fbe5427b2a93e7cc (commit)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Log -----------------------------------------------------------------
&lt;br&gt;&amp;gt; commit 439086099ad97a49c93102af1e6edafabea64b6f
&lt;br&gt;&amp;gt; Author: Volker Lendecke &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19907619&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vl@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: &amp;nbsp; Mon Sep 22 19:29:05 2008 +0200
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Add netlogond auth method
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; This authenticates against a local running samba4 using SamLogonEx. We retrieve
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; the machine password using samba4's mymachinepwd script and store the schannel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; key for re-use in secrets.tdb.
&lt;/div&gt;&lt;/div&gt;I might disagree with the franky thing, but I really like how clean this
&lt;br&gt;was for you to implement. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Nice work!
&lt;br&gt;&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Bartlett
&lt;br&gt;&lt;a href=&quot;http://samba.org/~abartlet/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org/~abartlet/&lt;/a&gt;&lt;br&gt;Authentication Developer, Samba Team &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://samba.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://samba.org&lt;/a&gt;&lt;br&gt;Samba Developer, Red Hat Inc.
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19907619/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A--SCM--Samba-Shared-Repository---branch-master-updated---439086099ad97a49c93102af1e6edafabea64b6f-tp19907619p19907619.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19901142</id>
	<title>Re: [linux-cifs-client] Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount (try #2)</title>
	<published>2008-10-09T08:17:34Z</published>
	<updated>2008-10-09T08:17:34Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Wed, 8 Oct 2008 14:58:02 -0400
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 08 Oct 2008 14:26:07 -0400
&lt;br&gt;&amp;gt; Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; This is the second attempt at this patch. The main difference here
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; is that this one uses #define'd constants for the exit codes. I
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; also changed a few places to return EX_SYSERR rather than EX_USAGE
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; since it looked like a more appropriate error.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Well, I don't like the mixed exit()s and return's, but that was there
&lt;br&gt;&amp;gt; &amp;gt; before. &amp;nbsp;There's also the question of whether you really want to return
&lt;br&gt;&amp;gt; &amp;gt; the same error code for all of the below cases:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(mount(dev_name, mountpoint, &amp;quot;cifs&amp;quot;, flags, options)) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 0:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENODEV:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENXIO:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; But again, that was already there. &amp;nbsp;If folks find those things
&lt;br&gt;&amp;gt; &amp;gt; palatable, then I'm okay with this. &amp;nbsp;I guess it's worth noting that I am
&lt;br&gt;&amp;gt; &amp;gt; somewhat familiar with the mount code, and I believe this is exactly
&lt;br&gt;&amp;gt; &amp;gt; what it expects, since it just returns the exit status of the
&lt;br&gt;&amp;gt; &amp;gt; fs-specific mount command in the failure case.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Acked-by: Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I've got a new patch that replaces the &amp;quot;return -1&amp;quot; calls with
&lt;br&gt;&amp;gt; exit(EX_USAGE) for most of these cases, so we should be able to make
&lt;br&gt;&amp;gt; that more consistent. I'll plan to commit that one tomorrow unless
&lt;br&gt;&amp;gt; anyone has objections.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For the switch statement, I'd rather hold off on making changes there.
&lt;br&gt;&amp;gt; I'm working on some cleanup to the cifs_mount() kernel code now as
&lt;br&gt;&amp;gt; well. I'd like to wait until that's closer to complete and then
&lt;br&gt;&amp;gt; reevaluate the switch as a whole. There may be other cases we need to
&lt;br&gt;&amp;gt; handle, and I'm not convinced that the printf's are currently always
&lt;br&gt;&amp;gt; correct for the cases that we have there.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Patch pushed to samba master, and v3-x-test branches.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19901142&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-%28try--2%29-tp19884079p19901142.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19898576</id>
	<title>Re: idmap question</title>
	<published>2008-10-09T05:49:54Z</published>
	<updated>2008-10-09T05:49:54Z</updated>
	<author>
		<name>Gerald (Jerry) Carter</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Herb Lewis wrote:
&lt;br&gt;&amp;gt; If you want to use the same idmap backend for all domains
&lt;br&gt;&amp;gt; do you need to include the name of each domain in the
&lt;br&gt;&amp;gt; &amp;quot;idmap domains&amp;quot; entry in smb.conf or is there some other
&lt;br&gt;&amp;gt; way of indicating a &amp;quot;default&amp;quot; backend that will be used
&lt;br&gt;&amp;gt; for all domains?
&lt;br&gt;&lt;br&gt;If you are on 3.2, then something like this will work:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;idmap domains = ALL
&lt;br&gt;&amp;nbsp; &amp;nbsp;idmap config ALL:backend = foo
&lt;br&gt;&amp;nbsp; &amp;nbsp;idmap config ALL:default = yes
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;jerry
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.6 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iD8DBQFI7f3yIR7qMdg1EfYRApMdAKCgCrsLqdFahtTaFaAMFpGM8UiTZwCZAThQ
&lt;br&gt;bWQGYe2htKrNUhjl4Ky5rOg=
&lt;br&gt;=d9Fp
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/idmap-question-tp19890058p19898576.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19895164</id>
	<title>Re: [PATCH] Add support for autogen to take a --version-file argument</title>
	<published>2008-10-09T02:12:56Z</published>
	<updated>2008-10-09T02:12:56Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Wed, Oct 08, 2008 at 03:51:55PM -0700, Tim Prouty wrote:
&lt;br&gt;&amp;gt; This patch plumbs through the --version-file argument to autogen.sh so
&lt;br&gt;&amp;gt; it can be passed down to mkversion.sh. &amp;nbsp;This allows vendors to more
&lt;br&gt;&amp;gt; cleanly control their version information.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The patch is just against source3, but I'm planning on pushing the
&lt;br&gt;&amp;gt; same thing to source4 if there are no objections.
&lt;br&gt;&lt;br&gt;This does not change normal operations? Then just put it in
&lt;br&gt;:-)
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (196 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/19895164/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--Add-support-for-autogen-to-take-a---version-file-argument-tp19889162p19895164.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19890058</id>
	<title>idmap question</title>
	<published>2008-10-08T17:17:58Z</published>
	<updated>2008-10-08T17:17:58Z</updated>
	<author>
		<name>Herb Lewis</name>
	</author>
	<content type="html">If you want to use the same idmap backend for all domains
&lt;br&gt;do you need to include the name of each domain in the
&lt;br&gt;&amp;quot;idmap domains&amp;quot; entry in smb.conf or is there some other
&lt;br&gt;way of indicating a &amp;quot;default&amp;quot; backend that will be used
&lt;br&gt;for all domains?
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/idmap-question-tp19890058p19890058.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19889285</id>
	<title>[PATCH] rm common lib object files on make cleanlib</title>
	<published>2008-10-08T16:02:27Z</published>
	<updated>2008-10-08T16:02:27Z</updated>
	<author>
		<name>Tim Prouty-2</name>
	</author>
	<content type="html">source4 already cleans up the object files on make clean. &amp;nbsp;This patch
&lt;br&gt;modifies source3 to also do this.
&lt;br&gt;&lt;br&gt;-Tim
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;&amp;nbsp;source3/Makefile.in | &amp;nbsp; &amp;nbsp;4 ++++
&lt;br&gt;&amp;nbsp;1 files changed, 4 insertions(+), 0 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/source3/Makefile.in b/source3/Makefile.in
&lt;br&gt;index eb6a05c..42baa86 100644
&lt;br&gt;--- a/source3/Makefile.in
&lt;br&gt;+++ b/source3/Makefile.in
&lt;br&gt;@@ -2659,6 +2659,10 @@ uninstallpammodules::
&lt;br&gt;&amp;nbsp;# Toplevel clean files
&lt;br&gt;&amp;nbsp;TOPFILES=dynconfig.o
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+cleanlibs::
&lt;br&gt;+	-rm -f ../lib/*/*.o ../lib/*/*/*.o \
&lt;br&gt;+		../libcli/*.o ../libcli/*/*.o
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;clean:: cleanlibs
&lt;br&gt;&amp;nbsp;	-rm -f include/build_env.h
&lt;br&gt;&amp;nbsp;	-rm -f smbd/build_options.c
&lt;br&gt;-- 
&lt;br&gt;1.6.0
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--rm-common-lib-object-files-on-make-cleanlib-tp19889285p19889285.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19889162</id>
	<title>[PATCH] Add support for autogen to take a --version-file argument</title>
	<published>2008-10-08T15:51:55Z</published>
	<updated>2008-10-08T15:51:55Z</updated>
	<author>
		<name>Tim Prouty-2</name>
	</author>
	<content type="html">This patch plumbs through the --version-file argument to autogen.sh so
&lt;br&gt;it can be passed down to mkversion.sh. &amp;nbsp;This allows vendors to more
&lt;br&gt;cleanly control their version information.
&lt;br&gt;&lt;br&gt;The patch is just against source3, but I'm planning on pushing the
&lt;br&gt;same thing to source4 if there are no objections.
&lt;br&gt;&lt;br&gt;-Tim
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;&amp;nbsp;source3/autogen.sh | &amp;nbsp; 14 +++++++++++++-
&lt;br&gt;&amp;nbsp;1 files changed, 13 insertions(+), 1 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/source3/autogen.sh b/source3/autogen.sh
&lt;br&gt;index deed774..61316a8 100755
&lt;br&gt;--- a/source3/autogen.sh
&lt;br&gt;+++ b/source3/autogen.sh
&lt;br&gt;@@ -2,6 +2,18 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;# Run this script to build samba from GIT.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+while true; do
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;case $1 in
&lt;br&gt;+	(--version-file)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;VERSION_FILE=$2
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;shift 2
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;;;
&lt;br&gt;+	(*)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;break
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;;;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;esac
&lt;br&gt;+done
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;## insert all possible names (only works with 
&lt;br&gt;&amp;nbsp;## autoconf 2.x)
&lt;br&gt;&amp;nbsp;TESTAUTOHEADER=&amp;quot;autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253&amp;quot;
&lt;br&gt;@@ -48,7 +60,7 @@ if test &amp;quot;$AUTOCONFFOUND&amp;quot; = &amp;quot;0&amp;quot; -o &amp;quot;$AUTOHEADERFOUND&amp;quot; = &amp;quot;0&amp;quot;; then
&lt;br&gt;&amp;nbsp;fi
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;echo &amp;quot;$0: running script/mkversion.sh&amp;quot;
&lt;br&gt;-./script/mkversion.sh || exit 1
&lt;br&gt;+./script/mkversion.sh $VERSION_FILE || exit 1
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;rm -rf autom4te*.cache
&lt;br&gt;&amp;nbsp;rm -f configure include/config.h*
&lt;br&gt;-- 
&lt;br&gt;1.6.0
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--Add-support-for-autogen-to-take-a---version-file-argument-tp19889162p19889162.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19885237</id>
	<title>Re: [linux-cifs-client] Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount (try #2)</title>
	<published>2008-10-08T11:58:02Z</published>
	<updated>2008-10-08T11:58:02Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Wed, 08 Oct 2008 14:26:07 -0400
&lt;br&gt;Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885237&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885237&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt; &amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt; &amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt; &amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This is the second attempt at this patch. The main difference here
&lt;br&gt;&amp;gt; &amp;gt; is that this one uses #define'd constants for the exit codes. I
&lt;br&gt;&amp;gt; &amp;gt; also changed a few places to return EX_SYSERR rather than EX_USAGE
&lt;br&gt;&amp;gt; &amp;gt; since it looked like a more appropriate error.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885237&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, I don't like the mixed exit()s and return's, but that was there
&lt;br&gt;&amp;gt; before. &amp;nbsp;There's also the question of whether you really want to return
&lt;br&gt;&amp;gt; the same error code for all of the below cases:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(mount(dev_name, mountpoint, &amp;quot;cifs&amp;quot;, flags, options)) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 0:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENODEV:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENXIO:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But again, that was already there. &amp;nbsp;If folks find those things
&lt;br&gt;&amp;gt; palatable, then I'm okay with this. &amp;nbsp;I guess it's worth noting that I am
&lt;br&gt;&amp;gt; somewhat familiar with the mount code, and I believe this is exactly
&lt;br&gt;&amp;gt; what it expects, since it just returns the exit status of the
&lt;br&gt;&amp;gt; fs-specific mount command in the failure case.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Acked-by: Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885237&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Thanks Jeff,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I've got a new patch that replaces the &amp;quot;return -1&amp;quot; calls with
&lt;br&gt;exit(EX_USAGE) for most of these cases, so we should be able to make
&lt;br&gt;that more consistent. I'll plan to commit that one tomorrow unless
&lt;br&gt;anyone has objections.
&lt;br&gt;&lt;br&gt;For the switch statement, I'd rather hold off on making changes there.
&lt;br&gt;I'm working on some cleanup to the cifs_mount() kernel code now as
&lt;br&gt;well. I'd like to wait until that's closer to complete and then
&lt;br&gt;reevaluate the switch as a whole. There may be other cases we need to
&lt;br&gt;handle, and I'm not convinced that the printf's are currently always
&lt;br&gt;correct for the cases that we have there.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19885237&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-%28try--2%29-tp19884079p19885237.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19884665</id>
	<title>Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount (try #2)</title>
	<published>2008-10-08T11:26:07Z</published>
	<updated>2008-10-08T11:26:07Z</updated>
	<author>
		<name>Jeff Moyer</name>
	</author>
	<content type="html">Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19884665&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is the second attempt at this patch. The main difference here
&lt;br&gt;&amp;gt; is that this one uses #define'd constants for the exit codes. I
&lt;br&gt;&amp;gt; also changed a few places to return EX_SYSERR rather than EX_USAGE
&lt;br&gt;&amp;gt; since it looked like a more appropriate error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19884665&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Well, I don't like the mixed exit()s and return's, but that was there
&lt;br&gt;before. &amp;nbsp;There's also the question of whether you really want to return
&lt;br&gt;the same error code for all of the below cases:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(mount(dev_name, mountpoint, &amp;quot;cifs&amp;quot;, flags, options)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 0:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENODEV:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ENXIO:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&lt;br&gt;But again, that was already there. &amp;nbsp;If folks find those things
&lt;br&gt;palatable, then I'm okay with this. &amp;nbsp;I guess it's worth noting that I am
&lt;br&gt;somewhat familiar with the mount code, and I believe this is exactly
&lt;br&gt;what it expects, since it just returns the exit status of the
&lt;br&gt;fs-specific mount command in the failure case.
&lt;br&gt;&lt;br&gt;Acked-by: Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19884665&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-%28try--2%29-tp19884079p19884665.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19884079</id>
	<title>[PATCH] mount.cifs: make return codes match the return codes for /bin/mount (try #2)</title>
	<published>2008-10-08T10:58:01Z</published>
	<updated>2008-10-08T10:58:01Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;codes from mount.cifs to make them match the expected return values
&lt;br&gt;from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&lt;br&gt;This is the second attempt at this patch. The main difference here
&lt;br&gt;is that this one uses #define'd constants for the exit codes. I
&lt;br&gt;also changed a few places to return EX_SYSERR rather than EX_USAGE
&lt;br&gt;since it looked like a more appropriate error.
&lt;br&gt;&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19884079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;source3/client/mount.cifs.c | &amp;nbsp; 80 ++++++++++++++++++++++++-------------------
&lt;br&gt;&amp;nbsp;1 files changed, 45 insertions(+), 35 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
&lt;br&gt;index b7a76c6..9d357cd 100644
&lt;br&gt;--- a/source3/client/mount.cifs.c
&lt;br&gt;+++ b/source3/client/mount.cifs.c
&lt;br&gt;@@ -79,6 +79,15 @@
&lt;br&gt;&amp;nbsp;#define MOUNT_PASSWD_SIZE 64
&lt;br&gt;&amp;nbsp;#define DOMAIN_SIZE 64
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+/* exit status - bits below are ORed */
&lt;br&gt;+#define EX_USAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* incorrect invocation or permission */
&lt;br&gt;+#define EX_SYSERR &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* out of memory, cannot fork, ... */
&lt;br&gt;+#define EX_SOFTWARE &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* internal mount bug or wrong version */
&lt;br&gt;+#define EX_USER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* user interrupt */
&lt;br&gt;+#define EX_FILEIO &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* problems writing, locking, ... mtab/fstab */
&lt;br&gt;+#define EX_FAIL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* mount failure */
&lt;br&gt;+#define EX_SOMEOK &amp;nbsp; &amp;nbsp; &amp;nbsp;64 &amp;nbsp; &amp;nbsp; &amp;nbsp; /* some mount succeeded */
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;const char *thisprogram;
&lt;br&gt;&amp;nbsp;int verboseflag = 0;
&lt;br&gt;&amp;nbsp;static int got_password = 0;
&lt;br&gt;@@ -174,7 +183,7 @@ static void mount_cifs_usage(void)
&lt;br&gt;&amp;nbsp;	printf(&amp;quot;\n\t%s -V\n&amp;quot;,thisprogram);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	SAFE_FREE(mountpassword);
&lt;br&gt;-	exit(1);
&lt;br&gt;+	exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/* caller frees username if necessary */
&lt;br&gt;@@ -233,7 +242,7 @@ static int open_cred_file(char * file_name)
&lt;br&gt;&amp;nbsp;				if(length &amp;gt; 4086) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;mount.cifs failed due to malformed username in credentials file&amp;quot;);
&lt;br&gt;&amp;nbsp;					memset(line_buf,0,4096);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				} else {
&lt;br&gt;&amp;nbsp;					got_user = 1;
&lt;br&gt;&amp;nbsp;					user_name = (char *)calloc(1 + length,1);
&lt;br&gt;@@ -257,7 +266,7 @@ static int open_cred_file(char * file_name)
&lt;br&gt;&amp;nbsp;				if(length &amp;gt; MOUNT_PASSWD_SIZE) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;mount.cifs failed: password in credentials file too long\n&amp;quot;);
&lt;br&gt;&amp;nbsp;					memset(line_buf,0, 4096);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				} else {
&lt;br&gt;&amp;nbsp;					if(mountpassword == NULL) {
&lt;br&gt;&amp;nbsp;						mountpassword = (char *)calloc(MOUNT_PASSWD_SIZE+1,1);
&lt;br&gt;@@ -285,7 +294,7 @@ static int open_cred_file(char * file_name)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(length &amp;gt; DOMAIN_SIZE) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;mount.cifs failed: domain in credentials file too long\n&amp;quot;);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(EX_USAGE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(domain_name == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;domain_name = (char *)calloc(DOMAIN_SIZE+1,1);
&lt;br&gt;@@ -318,7 +327,7 @@ static int get_password_from_file(int file_descript, char * filename)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (mountpassword == NULL) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;malloc failed\n&amp;quot;);
&lt;br&gt;-		exit(1);
&lt;br&gt;+		exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(filename != NULL) {
&lt;br&gt;@@ -326,7 +335,7 @@ static int get_password_from_file(int file_descript, char * filename)
&lt;br&gt;&amp;nbsp;		if(file_descript &amp;lt; 0) {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount.cifs failed. %s attempting to open password file %s\n&amp;quot;,
&lt;br&gt;&amp;nbsp;				 &amp;nbsp; strerror(errno),filename);
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	/* else file already open and fd provided */
&lt;br&gt;@@ -337,7 +346,7 @@ static int get_password_from_file(int file_descript, char * filename)
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount.cifs failed. Error %s reading password file\n&amp;quot;,strerror(errno));
&lt;br&gt;&amp;nbsp;			if(filename != NULL)
&lt;br&gt;&amp;nbsp;				close(file_descript);
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		} else if(rc == 0) {
&lt;br&gt;&amp;nbsp;			if(mountpassword[0] == 0) {
&lt;br&gt;&amp;nbsp;				if(verboseflag)
&lt;br&gt;@@ -563,7 +572,7 @@ static int parse_options(char ** optionsp, int * filesys_flags)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;					if (!(pw = getpwnam(value))) {
&lt;br&gt;&amp;nbsp;						printf(&amp;quot;bad user name \&amp;quot;%s\&amp;quot;\n&amp;quot;, value);
&lt;br&gt;-						exit(1);
&lt;br&gt;+						exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;					}
&lt;br&gt;&amp;nbsp;					snprintf(user, sizeof(user), &amp;quot;%u&amp;quot;, pw-&amp;gt;pw_uid);
&lt;br&gt;&amp;nbsp;				} else {
&lt;br&gt;@@ -579,7 +588,7 @@ static int parse_options(char ** optionsp, int * filesys_flags)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;					if (!(gr = getgrnam(value))) {
&lt;br&gt;&amp;nbsp;						printf(&amp;quot;bad group name \&amp;quot;%s\&amp;quot;\n&amp;quot;, value);
&lt;br&gt;-						exit(1);
&lt;br&gt;+						exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;					}
&lt;br&gt;&amp;nbsp;					snprintf(group, sizeof(group), &amp;quot;%u&amp;quot;, gr-&amp;gt;gr_gid);
&lt;br&gt;&amp;nbsp;				} else {
&lt;br&gt;@@ -674,7 +683,7 @@ static int parse_options(char ** optionsp, int * filesys_flags)
&lt;br&gt;&amp;nbsp;		out = (char *)realloc(out, out_len + word_len + 2);
&lt;br&gt;&amp;nbsp;		if (out == NULL) {
&lt;br&gt;&amp;nbsp;			perror(&amp;quot;malloc&amp;quot;);
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		if (out_len) {
&lt;br&gt;@@ -699,7 +708,7 @@ nocopy:
&lt;br&gt;&amp;nbsp;		out = (char *)realloc(out, out_len + word_len + 6);
&lt;br&gt;&amp;nbsp;		if (out == NULL) {
&lt;br&gt;&amp;nbsp;			perror(&amp;quot;malloc&amp;quot;);
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		if (out_len) {
&lt;br&gt;@@ -715,7 +724,7 @@ nocopy:
&lt;br&gt;&amp;nbsp;		out = (char *)realloc(out, out_len + 1 + word_len + 6);
&lt;br&gt;&amp;nbsp;		if (out == NULL) {
&lt;br&gt;&amp;nbsp;		perror(&amp;quot;malloc&amp;quot;);
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		if (out_len) {
&lt;br&gt;@@ -1050,7 +1059,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		thisprogram = argv[0];
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;&amp;nbsp;		mount_cifs_usage();
&lt;br&gt;-		exit(1);
&lt;br&gt;+		exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(thisprogram == NULL)
&lt;br&gt;@@ -1067,12 +1076,12 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		share_name = strndup(argv[1], MAX_UNC_LEN);
&lt;br&gt;&amp;nbsp;		if (share_name == NULL) {
&lt;br&gt;&amp;nbsp;			fprintf(stderr, &amp;quot;%s: %s&amp;quot;, argv[0], strerror(ENOMEM));
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_SYSERR);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		mountpoint = argv[2];
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;&amp;nbsp;		mount_cifs_usage();
&lt;br&gt;-		exit(1);
&lt;br&gt;+		exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* add sharename in opts string as unc= parm */
&lt;br&gt;@@ -1094,7 +1103,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		case '?':
&lt;br&gt;&amp;nbsp;		case 'h':	 /* help */
&lt;br&gt;&amp;nbsp;			mount_cifs_usage ();
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;		case 'n':
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; &amp;nbsp;++nomtab;
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;@@ -1148,14 +1157,14 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;				uid = strtoul(optarg, &amp;ep, 10);
&lt;br&gt;&amp;nbsp;				if (*ep) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;bad uid value \&amp;quot;%s\&amp;quot;\n&amp;quot;, optarg);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				}
&lt;br&gt;&amp;nbsp;			} else {
&lt;br&gt;&amp;nbsp;				struct passwd *pw;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;				if (!(pw = getpwnam(optarg))) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;bad user name \&amp;quot;%s\&amp;quot;\n&amp;quot;, optarg);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				}
&lt;br&gt;&amp;nbsp;				uid = pw-&amp;gt;pw_uid;
&lt;br&gt;&amp;nbsp;				endpwent();
&lt;br&gt;@@ -1168,14 +1177,14 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;				gid = strtoul(optarg, &amp;ep, 10);
&lt;br&gt;&amp;nbsp;				if (*ep) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;bad gid value \&amp;quot;%s\&amp;quot;\n&amp;quot;, optarg);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				}
&lt;br&gt;&amp;nbsp;			} else {
&lt;br&gt;&amp;nbsp;				struct group *gr;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;				if (!(gr = getgrnam(optarg))) {
&lt;br&gt;&amp;nbsp;					printf(&amp;quot;bad user name \&amp;quot;%s\&amp;quot;\n&amp;quot;, optarg);
&lt;br&gt;-					exit(1);
&lt;br&gt;+					exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;				}
&lt;br&gt;&amp;nbsp;				gid = gr-&amp;gt;gr_gid;
&lt;br&gt;&amp;nbsp;				endpwent();
&lt;br&gt;@@ -1205,13 +1214,13 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		default:
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;unknown mount option %c\n&amp;quot;,c);
&lt;br&gt;&amp;nbsp;			mount_cifs_usage();
&lt;br&gt;-			exit(1);
&lt;br&gt;+			exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if((argc &amp;lt; 3) || (dev_name == NULL) || (mountpoint == NULL)) {
&lt;br&gt;&amp;nbsp;		mount_cifs_usage();
&lt;br&gt;-		exit(1);
&lt;br&gt;+		exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (getenv(&amp;quot;PASSWD&amp;quot;)) {
&lt;br&gt;@@ -1228,13 +1237,13 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (orgoptions &amp;&amp; parse_options(&amp;orgoptions, &amp;flags)) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rc = -1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rc = EX_USAGE;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	ipaddr = parse_server(&amp;share_name);
&lt;br&gt;&amp;nbsp;	if((ipaddr == NULL) &amp;&amp; (got_ip == 0)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;No ip address specified and hostname not found\n&amp;quot;);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = EX_USAGE;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	
&lt;br&gt;@@ -1249,19 +1258,19 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if(chdir(mountpoint)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: can not change directory into mount target %s\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = EX_USAGE;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(stat (&amp;quot;.&amp;quot;, &amp;statbuf)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: mount point %s does not exist\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = EX_USAGE;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (S_ISDIR(statbuf.st_mode) == 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: mount point %s is not a directory\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = EX_USAGE;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1274,7 +1283,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;#endif						
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount error: permission denied or not superuser and mount.cifs not installed SUID\n&amp;quot;); 
&lt;br&gt;-			return -1;
&lt;br&gt;+			return EX_USAGE;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1289,7 +1298,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		mountpassword = (char *)calloc(MOUNT_PASSWD_SIZE+1,1);
&lt;br&gt;&amp;nbsp;		if (!tmp_pass || !mountpassword) {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;Password not entered, exiting\n&amp;quot;);
&lt;br&gt;-			return -1;
&lt;br&gt;+			return EX_USAGE;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		strlcpy(mountpassword, tmp_pass, MOUNT_PASSWD_SIZE+1);
&lt;br&gt;&amp;nbsp;		got_password = 1;
&lt;br&gt;@@ -1307,7 +1316,7 @@ mount_retry:
&lt;br&gt;&amp;nbsp;	else {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;No server share name specified\n&amp;quot;);
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;\nMounting the DFS root for server not implemented yet\n&amp;quot;);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(EX_USAGE);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if(user_name)
&lt;br&gt;&amp;nbsp;		optlen += strlen(user_name) + 6;
&lt;br&gt;@@ -1321,7 +1330,7 @@ mount_retry:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(options == NULL) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Could not allocate memory for mount options\n&amp;quot;);
&lt;br&gt;-		return -1;
&lt;br&gt;+		return EX_SYSERR;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	options[0] = 0;
&lt;br&gt;@@ -1400,8 +1409,7 @@ mount_retry:
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount error %d = %s\n&amp;quot;,errno,strerror(errno));
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)\n&amp;quot;);
&lt;br&gt;-		rc = -1;
&lt;br&gt;-		goto mount_exit;
&lt;br&gt;+		rc = EX_FAIL;
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;&amp;nbsp;		pmntfile = setmntent(MOUNTED, &amp;quot;a+&amp;quot;);
&lt;br&gt;&amp;nbsp;		if(pmntfile) {
&lt;br&gt;@@ -1439,11 +1447,13 @@ mount_retry:
&lt;br&gt;&amp;nbsp;			rc = addmntent(pmntfile,&amp;mountent);
&lt;br&gt;&amp;nbsp;			endmntent(pmntfile);
&lt;br&gt;&amp;nbsp;			SAFE_FREE(mountent.mnt_opts);
&lt;br&gt;+			if (rc)
&lt;br&gt;+				rc = EX_FILEIO;
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;-		 &amp;nbsp; &amp;nbsp;printf(&amp;quot;could not update mount table\n&amp;quot;);
&lt;br&gt;+			printf(&amp;quot;could not update mount table\n&amp;quot;);
&lt;br&gt;+			rc = EX_FILEIO;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	rc = 0;
&lt;br&gt;&amp;nbsp;mount_exit:
&lt;br&gt;&amp;nbsp;	if(mountpassword) {
&lt;br&gt;&amp;nbsp;		int len = strlen(mountpassword);
&lt;br&gt;-- 
&lt;br&gt;1.5.5.1
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-%28try--2%29-tp19884079p19884079.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19882327</id>
	<title>Re: [linux-cifs-client] Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount</title>
	<published>2008-10-08T09:21:57Z</published>
	<updated>2008-10-08T09:21:57Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Wed, 08 Oct 2008 12:14:38 -0400
&lt;br&gt;Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882327&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882327&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt; &amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt; &amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt; &amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks, Jeff. &amp;nbsp;I think it might be cleaner to make #define's for the
&lt;br&gt;&amp;gt; exit codes, but I'll leave that up to you guys.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Agreed...
&lt;br&gt;&lt;br&gt;If libmount ever gets off the ground, I expect that the header files for
&lt;br&gt;it will have them. I sort of dislike having our own declarations of them,
&lt;br&gt;but maybe that's a better way in the interim.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882327&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-tp19881716p19882327.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19882288</id>
	<title>Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount</title>
	<published>2008-10-08T09:20:08Z</published>
	<updated>2008-10-08T09:20:08Z</updated>
	<author>
		<name>Steve French-2</name>
	</author>
	<content type="html">I would like to compare with what the mount util itself does.
&lt;br&gt;&lt;br&gt;On Wed, Oct 8, 2008 at 11:14 AM, Jeff Moyer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882288&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmoyer@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882288&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt;&amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt;&amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt;&amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks, Jeff. &amp;nbsp;I think it might be cleaner to make #define's for the
&lt;br&gt;&amp;gt; exit codes, but I'll leave that up to you guys.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jeff
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-tp19881716p19882288.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19882175</id>
	<title>Re: [PATCH] mount.cifs: make return codes match the return codes for /bin/mount</title>
	<published>2008-10-08T09:14:38Z</published>
	<updated>2008-10-08T09:14:38Z</updated>
	<author>
		<name>Jeff Moyer</name>
	</author>
	<content type="html">Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19882175&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;&amp;gt; positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;&amp;gt; codes from mount.cifs to make them match the expected return values
&lt;br&gt;&amp;gt; from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&lt;br&gt;Thanks, Jeff. &amp;nbsp;I think it might be cleaner to make #define's for the
&lt;br&gt;exit codes, but I'll leave that up to you guys.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-tp19881716p19882175.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19881716</id>
	<title>[PATCH] mount.cifs: make return codes match the return codes for /bin/mount</title>
	<published>2008-10-08T08:51:06Z</published>
	<updated>2008-10-08T08:51:06Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">The manpage for /bin/mount specifies that the return code should be a
&lt;br&gt;positive integer (actually, it's a bitfield). Clean up the return
&lt;br&gt;codes from mount.cifs to make them match the expected return values
&lt;br&gt;from /bin/mount. This necessary for proper integration with autofs.
&lt;br&gt;&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19881716&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;source3/client/mount.cifs.c | &amp;nbsp; 25 +++++++++++++------------
&lt;br&gt;&amp;nbsp;1 files changed, 13 insertions(+), 12 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
&lt;br&gt;index b7a76c6..4a6477c 100644
&lt;br&gt;--- a/source3/client/mount.cifs.c
&lt;br&gt;+++ b/source3/client/mount.cifs.c
&lt;br&gt;@@ -1228,13 +1228,13 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (orgoptions &amp;&amp; parse_options(&amp;orgoptions, &amp;flags)) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rc = -1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rc = 1;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	ipaddr = parse_server(&amp;share_name);
&lt;br&gt;&amp;nbsp;	if((ipaddr == NULL) &amp;&amp; (got_ip == 0)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;No ip address specified and hostname not found\n&amp;quot;);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = 1;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	
&lt;br&gt;@@ -1249,19 +1249,19 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if(chdir(mountpoint)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: can not change directory into mount target %s\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = 1;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(stat (&amp;quot;.&amp;quot;, &amp;statbuf)) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: mount point %s does not exist\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = 1;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (S_ISDIR(statbuf.st_mode) == 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;mount error: mount point %s is not a directory\n&amp;quot;,mountpoint);
&lt;br&gt;-		rc = -1;
&lt;br&gt;+		rc = 1;
&lt;br&gt;&amp;nbsp;		goto mount_exit;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1274,7 +1274,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;#endif						
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount error: permission denied or not superuser and mount.cifs not installed SUID\n&amp;quot;); 
&lt;br&gt;-			return -1;
&lt;br&gt;+			return 1;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1289,7 +1289,7 @@ int main(int argc, char ** argv)
&lt;br&gt;&amp;nbsp;		mountpassword = (char *)calloc(MOUNT_PASSWD_SIZE+1,1);
&lt;br&gt;&amp;nbsp;		if (!tmp_pass || !mountpassword) {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;Password not entered, exiting\n&amp;quot;);
&lt;br&gt;-			return -1;
&lt;br&gt;+			return 1;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		strlcpy(mountpassword, tmp_pass, MOUNT_PASSWD_SIZE+1);
&lt;br&gt;&amp;nbsp;		got_password = 1;
&lt;br&gt;@@ -1321,7 +1321,7 @@ mount_retry:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(options == NULL) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Could not allocate memory for mount options\n&amp;quot;);
&lt;br&gt;-		return -1;
&lt;br&gt;+		return 2;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	options[0] = 0;
&lt;br&gt;@@ -1400,8 +1400,7 @@ mount_retry:
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;mount error %d = %s\n&amp;quot;,errno,strerror(errno));
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)\n&amp;quot;);
&lt;br&gt;-		rc = -1;
&lt;br&gt;-		goto mount_exit;
&lt;br&gt;+		rc = 32;
&lt;br&gt;&amp;nbsp;	} else {
&lt;br&gt;&amp;nbsp;		pmntfile = setmntent(MOUNTED, &amp;quot;a+&amp;quot;);
&lt;br&gt;&amp;nbsp;		if(pmntfile) {
&lt;br&gt;@@ -1439,11 +1438,13 @@ mount_retry:
&lt;br&gt;&amp;nbsp;			rc = addmntent(pmntfile,&amp;mountent);
&lt;br&gt;&amp;nbsp;			endmntent(pmntfile);
&lt;br&gt;&amp;nbsp;			SAFE_FREE(mountent.mnt_opts);
&lt;br&gt;+			if (rc)
&lt;br&gt;+				rc = 16;
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;-		 &amp;nbsp; &amp;nbsp;printf(&amp;quot;could not update mount table\n&amp;quot;);
&lt;br&gt;+			printf(&amp;quot;could not update mount table\n&amp;quot;);
&lt;br&gt;+			rc = 16;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	rc = 0;
&lt;br&gt;&amp;nbsp;mount_exit:
&lt;br&gt;&amp;nbsp;	if(mountpassword) {
&lt;br&gt;&amp;nbsp;		int len = strlen(mountpassword);
&lt;br&gt;-- 
&lt;br&gt;1.5.5.1
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-PATCH--mount.cifs%3A-make-return-codes-match-the-return-codes-for--bin-mount-tp19881716p19881716.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19876722</id>
	<title>granting replicating directory change in samba4</title>
	<published>2008-10-08T04:12:22Z</published>
	<updated>2008-10-08T04:12:22Z</updated>
	<author>
		<name>Matthieu PATOU-2</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I tried to follow the procedure here :
&lt;br&gt;&lt;a href=&quot;http://support.microsoft.com/default.aspx?scid=kb;en-us;303972&amp;Product=idserv2003&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;303972&amp;Product=idserv2003&lt;/a&gt;&lt;br&gt;&lt;br&gt;but I do not see the option for &amp;quot;Replicating Directory Changes&amp;quot;
&lt;br&gt;&lt;br&gt;Do you think it's possible with samba4 right now ?
&lt;br&gt;&lt;br&gt;Matthieu.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/granting-replicating-directory-change-in-samba4-tp19876722p19876722.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19873092</id>
	<title>Seeking help getting arguments to include 3.2.4 in the upcoming Debian</title>
	<published>2008-10-07T22:18:25Z</published>
	<updated>2008-10-07T22:18:25Z</updated>
	<author>
		<name>Christian Perrier</name>
	</author>
	<content type="html">Hello folks,
&lt;br&gt;&lt;br&gt;I'm trying to gather together enough arguments to convince the Debian
&lt;br&gt;release team that it would be good to have 3.2.4 in Debian lenny
&lt;br&gt;rather than 3.2.3...
&lt;br&gt;&lt;br&gt;You'll find below the message I came up with as of now, but having a
&lt;br&gt;few &amp;quot;important&amp;quot; things that are fixed in that release to be put as
&lt;br&gt;good example (as I did for #5761) would be good.... Would you have any
&lt;br&gt;suggestions?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;======================= cut here =============================
&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;The samba packaging team has a ready package for samba 3.2.4
&lt;br&gt;&lt;br&gt;This new upstream version is a mostly a bug-fix-only version, just
&lt;br&gt;like all versions in 3.2.* series. Upstream is now focusing on 3.3
&lt;br&gt;releases, which are due out in November.
&lt;br&gt;&lt;br&gt;At least, it is fixing an important bug report we received since 3.2.0
&lt;br&gt;entered unstable: #499419 (listing files with colon in their name,
&lt;br&gt;upstream bug 5761)
&lt;br&gt;&lt;br&gt;All other bugs are bug fixes pushed by upstream as part of the ageing
&lt;br&gt;and increasing feedback for the 3.2 series.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The changelog for this release is fairly long:
&lt;br&gt;&lt;br&gt;o &amp;nbsp; Michael Adam &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;obnox@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5590: Fix binary stripping on older OS.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5492: Fix RHEL SPEC file by removing libmsrpc stuff.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5507: Fix several issues in the RHEL SPEC file.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix linking of cifs.upcall when nscd_flush_cache() is found.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Jeremy Allison &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jra@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5052: Allow inheritable permissions.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5697: Fix spinning of nmbd in reload_interfaces when only loopback
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; has an IPv4 address.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5698: Fix non guest connections to shares when &amp;quot;security = share&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; is used.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5729: Explicitly allow &amp;quot;-valid&amp;quot;.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5745: Fix Kerberos authentication with (lib)smbclient.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5751: Fix showing of ACLs on DFS in (lib)smbclient.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5761: Fix opening of mangled directory name (resulted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 'is a stream name').
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix the wcache_invalidate_samlogon calls.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Add st_birthtime and friends for accurate create times on *BSD and MacOSX.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Clarify usage of &amp;quot;force create mode&amp;quot;.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Write times code update.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Gerald (Jerry) Carter &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jerry@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix Winbind crash.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; structure.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Steven Danneman &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;steven.danneman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix build warnings.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Cleanup of DC enumeration in get_dcs().
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Günther Deschner &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gd@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5710: Fix changing of machine account passwords.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix several build warnings.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix invalid sid copy (hit when enumerating sibling domains) in Winbind.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; James Ding &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ding_cc@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5736: Fix Winbind crash bug with trusted domains.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Ephi Dror &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ephi.Dror@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Correct the netsamlogon_clear_cached_user function.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Jeff Layton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix handling of MSKRB5 OID in cifs.upcall.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix build warnings in cifs.upcall.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Change default install location of cifs.upcall to EPREFIX/sbin.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Enable building of cifs.upcall by default on Linux.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Volker Lendecke &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vl@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5707: Do proper error handling if the socket is closed.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix calculation of useable_space for trans2 and nttrans replies.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix Coverity ID 587.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Add mapping of generic bits when setting an NFSv4 ACL.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Stefan Metzmacher &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;metze@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Some write time fixes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; David Leonard &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;David.Leonard@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 4516: No IPv6 on Solaris 2.6.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Simo Sorce &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;idra@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * BUG 5571: Fix group memeberships in Winbind.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Timur &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;timur@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix cut and paste error in quota code.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix display of POSIX ACLs.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix aio on FreeBSD.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Andrew Tridgell &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tridge@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Avoid a race condition in glibc between AIO and setresuid().
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Add missing become root for AIO operations.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix logic of tsmsm_sendfile().
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix an errno handling bug that could lead to an infinite loop.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix handling of arbitrary new PAC types.
&lt;br&gt;&lt;br&gt;&lt;br&gt;o &amp;nbsp; Qiao Yang &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoyang@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Fix a memleak.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pkg-samba-maint mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19873092&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pkg-samba-maint@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.alioth.debian.org/mailman/listinfo/pkg-samba-maint&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.alioth.debian.org/mailman/listinfo/pkg-samba-maint&lt;/a&gt;&lt;br&gt;&lt;br&gt;----- End forwarded message -----
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Seeking-help-getting-arguments-to-include-3.2.4-in-the-upcoming-Debian-tp19873092p19873092.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19864310</id>
	<title>Re: [SCM] Samba Shared Repository - branch master updated -cde1b09d68e496f8f531336088433e9546b2864d</title>
	<published>2008-10-07T11:10:26Z</published>
	<updated>2008-10-07T11:10:26Z</updated>
	<author>
		<name>Tim Prouty-2</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 7, 2008, at 9:50 AM, Jeremy Allison wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Oct 07, 2008 at 09:29:28AM -0700, Tim Prouty wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Oct 7, 2008, at 8:51 AM, Jeremy Allison wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Don't forget to push these to all other branches that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have the same problem.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In this case that'll be 3-3-test and 3-2-test as well
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; please.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That makes sense. &amp;nbsp;I'll push these patches there as well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks Tim !
&lt;/div&gt;&lt;br&gt;I pushed both to 3-2-test.
&lt;br&gt;&lt;br&gt;It turns out f19086872ec7 is already fixed in 3-3-test, and was &amp;nbsp;
&lt;br&gt;recently broken in master. &amp;nbsp;Specifically the fix got lost in &amp;nbsp;
&lt;br&gt;41669237cd714c when socket_wrapper was moved from source3/lib to the &amp;nbsp;
&lt;br&gt;top level lib, so I only pushed the one applicable patch to 3-3-test.
&lt;br&gt;&lt;br&gt;Finally, I also changed a variable name for f19086872ec7 in master so &amp;nbsp;
&lt;br&gt;it is in sync with 3-3-test and 3-2-test.
&lt;br&gt;&lt;br&gt;-Tim
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A--SCM--Samba-Shared-Repository---branch-master-updated---cde1b09d68e496f8f531336088433e9546b2864d-tp19861285p19864310.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19862562</id>
	<title>Re: VFS Linking errors</title>
	<published>2008-10-07T09:54:15Z</published>
	<updated>2008-10-07T09:54:15Z</updated>
	<author>
		<name>Jeremy Allison</name>
	</author>
	<content type="html">On Tue, Oct 07, 2008 at 03:02:07PM +0100, Paul Weaver wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; but C has the IP address of the client appended &amp;quot;msmMMOB.mdb.10.2.3.4&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When you read the directory, you see &amp;quot;msmMMOB.mdb&amp;quot;, but you see the copy
&lt;br&gt;&amp;gt; of the file for your IP address.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The code (roughly) is
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://ingex.cvs.sourceforge.net/viewvc/ingex/ingex/MediaHarmony/media_h&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ingex.cvs.sourceforge.net/viewvc/ingex/ingex/MediaHarmony/media_h&lt;/a&gt;&lt;br&gt;&amp;gt; armony.c?revision=1.1&amp;view=markup
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The specific troublesome line is
&lt;br&gt;&amp;gt; static const char* MDB_FILENAME = &amp;quot;msmMMOB.mdb&amp;quot;;
&lt;br&gt;&amp;gt; fstrcpy(d-&amp;gt;d_name, MDB_FILENAME);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sizeof MDB_FILENAME is 4, even though the content's 11 chars long, but I
&lt;br&gt;&amp;gt; think that's ok
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any hint as to what I could do better?
&lt;/div&gt;&lt;br&gt;You can't just declare a SMB_STRUCT_DIRENT on
&lt;br&gt;the stack and copy into it.
&lt;br&gt;&lt;br&gt;You have to allocate instead. Something like :
&lt;br&gt;&lt;br&gt;size_t len = strlen(MDB_FILENAME) + 1;
&lt;br&gt;SMB_STRUCT_DIRENT *d = (SMB_STRUCT_DIRENT *)malloc(sizeof(SMB_STRUCT_DIRENT) + len);
&lt;br&gt;strlcpy(d-&amp;gt;d_name, MDB_FILENAME, len);
&lt;br&gt;&lt;br&gt;Jeremy.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/VFS-Linking-errors-tp19554973p19862562.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19862499</id>
	<title>Re: [SCM] Samba Shared Repository - branch master updated -cde1b09d68e496f8f531336088433e9546b2864d</title>
	<published>2008-10-07T09:50:51Z</published>
	<updated>2008-10-07T09:50:51Z</updated>
	<author>
		<name>Jeremy Allison</name>
	</author>
	<content type="html">On Tue, Oct 07, 2008 at 09:29:28AM -0700, Tim Prouty wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 7, 2008, at 8:51 AM, Jeremy Allison wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Don't forget to push these to all other branches that
&lt;br&gt;&amp;gt;&amp;gt; have the same problem.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In this case that'll be 3-3-test and 3-2-test as well
&lt;br&gt;&amp;gt;&amp;gt; please.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That makes sense. &amp;nbsp;I'll push these patches there as well.
&lt;/div&gt;&lt;br&gt;Thanks Tim !
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A--SCM--Samba-Shared-Repository---branch-master-updated---cde1b09d68e496f8f531336088433e9546b2864d-tp19861285p19862499.html" />
</entry>

</feed>
