svn commit: samba r19989 - in branches/SAMBA_4_0/source/lib/tdb: .

2006-12-01 Thread paulg
Author: paulg
Date: 2006-12-01 19:48:31 + (Fri, 01 Dec 2006)
New Revision: 19989

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19989

Log:
Add support to the tdb Makefile.in for executable extensions and for
separately specifying CPPFLAGS and LDFLAGS.


Modified:
   branches/SAMBA_4_0/source/lib/tdb/Makefile.in


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/Makefile.in
===
--- branches/SAMBA_4_0/source/lib/tdb/Makefile.in   2006-12-01 18:05:09 UTC 
(rev 19988)
+++ branches/SAMBA_4_0/source/lib/tdb/Makefile.in   2006-12-01 19:48:31 UTC 
(rev 19989)
@@ -12,11 +12,17 @@
 VPATH = @srcdir@:@libreplacedir@
 srcdir = @srcdir@
 builddir = @builddir@
-CFLAGS = -I$(srcdir)/include -Iinclude [EMAIL PROTECTED]@ @CFLAGS@
+CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude [EMAIL PROTECTED]@
+CFLAGS = $(CPPFLAGS) @CFLAGS@
+LDFLAGS = @LDFLAGS@
+EXEEXT = @EXEEXT@
 
 .PHONY: test
 
-PROGS = bin/tdbtool bin/tdbtorture
+PROGS = bin/tdbtool$(EXEEXT) bin/tdbtorture$(EXEEXT)
+PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbdump$(EXEEXT) 
bin/tdbbackup$(EXEEXT)
+ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL)
+
 TDB_OBJ = @TDBOBJ@ @LIBREPLACEOBJ@
 
 DIRS = bin common tools
@@ -26,6 +32,8 @@
 showflags:
@echo 'tdb will be compiled with flags:'
@echo '  CFLAGS = $(CFLAGS)'
+   @echo '  CPPFLAGS = $(CPPFLAGS)'
+   @echo '  LDFLAGS = $(LDFLAGS)'
@echo '  LIBS = $(LIBS)'
 
 .c.o:
@@ -48,28 +56,28 @@
 libtdb.a: $(TDB_OBJ)
ar -rv libtdb.a $(TDB_OBJ)
 
-bin/tdbtest: tools/tdbtest.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm
+bin/tdbtest$(EXEEXT): tools/tdbtest.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb 
-lgdbm
 
-bin/tdbtool: tools/tdbtool.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
+bin/tdbtool$(EXEEXT): tools/tdbtool.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
 
-bin/tdbtorture: tools/tdbtorture.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. -ltdb
+bin/tdbtorture$(EXEEXT): tools/tdbtorture.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. 
-ltdb
 
-bin/tdbdump: tools/tdbdump.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
+bin/tdbdump$(EXEEXT): tools/tdbdump.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
 
-bin/tdbbackup: tools/tdbbackup.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
+bin/tdbbackup$(EXEEXT): tools/tdbbackup.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
 
-test: bin/tdbtorture
-   bin/tdbtorture
+test: bin/tdbtorture$(EXEEXT)
+   bin/tdbtorture$(EXEEXT)
 
 installcheck: test install
 
 clean:
-   rm -f $(PROGS) *.o *.a common/*.o tools/*.o tdb.pc
+   rm -f $(ALL_PROGS) *.o *.a common/*.o tools/*.o tdb.pc
rm -f test.db test.tdb torture.tdb test.gdbm
 
 distclean: clean



svn commit: samba r19992 - in branches/SAMBA_3_0/source/tdb: .

2006-12-01 Thread paulg
Author: paulg
Date: 2006-12-01 20:45:43 + (Fri, 01 Dec 2006)
New Revision: 19992

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19992

Log:
Add support to the tdb Makefile.in for executable extensions and for
separately specifying CPPFLAGS and LDFLAGS.


Modified:
   branches/SAMBA_3_0/source/tdb/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/tdb/Makefile.in
===
--- branches/SAMBA_3_0/source/tdb/Makefile.in   2006-12-01 20:01:09 UTC (rev 
19991)
+++ branches/SAMBA_3_0/source/tdb/Makefile.in   2006-12-01 20:45:43 UTC (rev 
19992)
@@ -12,11 +12,17 @@
 VPATH = @srcdir@:@libreplacedir@
 srcdir = @srcdir@
 builddir = @builddir@
-CFLAGS = -I$(srcdir)/include -Iinclude -I../include [EMAIL PROTECTED]@ @CFLAGS@
+CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude -I../include [EMAIL 
PROTECTED]@
+CFLAGS = $(CPPFLAGS) @CFLAGS@
+LDFLAGS = @LDFLAGS@
+EXEEXT = @EXEEXT@
 
 .PHONY: test
 
-PROGS = bin/tdbtool bin/tdbtorture
+PROGS = bin/tdbtool$(EXEEXT) bin/tdbtorture$(EXEEXT)
+PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbdump$(EXEEXT) 
bin/tdbbackup$(EXEEXT)
+ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL)
+
 TDB_OBJ = @TDBOBJ@
 
 DIRS = bin common tools
@@ -26,6 +32,8 @@
 showflags:
@echo 'tdb will be compiled with flags:'
@echo '  CFLAGS = $(CFLAGS)'
+   @echo '  CPPFLAGS = $(CPPFLAGS)'
+   @echo '  LDFLAGS = $(LDFLAGS)'
@echo '  LIBS = $(LIBS)'
 
 .c.o:
@@ -48,28 +56,28 @@
 libtdb.a: $(TDB_OBJ)
ar -rv libtdb.a $(TDB_OBJ)
 
-bin/tdbtest: tools/tdbtest.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm
+bin/tdbtest$(EXEEXT): tools/tdbtest.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb 
-lgdbm
 
-bin/tdbtool: tools/tdbtool.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
+bin/tdbtool$(EXEEXT): tools/tdbtool.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
 
-bin/tdbtorture: tools/tdbtorture.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. -ltdb
+bin/tdbtorture$(EXEEXT): tools/tdbtorture.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. 
-ltdb
 
-bin/tdbdump: tools/tdbdump.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
+bin/tdbdump$(EXEEXT): tools/tdbdump.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
 
-bin/tdbbackup: tools/tdbbackup.o libtdb.a
-   $(CC) $(CFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
+bin/tdbbackup$(EXEEXT): tools/tdbbackup.o libtdb.a
+   $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
 
-test: bin/tdbtorture
-   bin/tdbtorture
+test: bin/tdbtorture$(EXEEXT)
+   bin/tdbtorture$(EXEEXT)
 
 installcheck: test install
 
 clean:
-   rm -f $(PROGS) *.o *.a common/*.o tools/*.o tdb.pc
+   rm -f $(ALL_PROGS) *.o *.a common/*.o tools/*.o tdb.pc
rm -f test.db test.tdb torture.tdb test.gdbm
 
 distclean: clean



svn commit: samba r19952 - in branches/SAMBA_4_0/source/lib/replace/test: .

2006-11-29 Thread paulg
Author: paulg
Date: 2006-11-29 18:44:54 + (Wed, 29 Nov 2006)
New Revision: 19952

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19952

Log:
Fix socketpair() test case to write to fd(1) and read from fd(0) because
when pipe files are substituting for unix domain sockets, pipes provide
only uni-directional i/o capabilities.


Modified:
   branches/SAMBA_4_0/source/lib/replace/test/testsuite.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/test/testsuite.c
===
--- branches/SAMBA_4_0/source/lib/replace/test/testsuite.c  2006-11-29 
17:55:21 UTC (rev 19951)
+++ branches/SAMBA_4_0/source/lib/replace/test/testsuite.c  2006-11-29 
18:44:54 UTC (rev 19952)
@@ -390,14 +390,14 @@
return false;
}
 
-   if (write(sock[0], automatisch, 12) == -1) {
+   if (write(sock[1], automatisch, 12) == -1) {
printf(failure: socketpair [\n
   write() failed: %s\n
   ]\n, strerror(errno));
return false;
}
 
-   if (read(sock[1], buf, 12) == -1) {
+   if (read(sock[0], buf, 12) == -1) {
printf(failure: socketpair [\n
   read() failed: %s\n
   ]\n, strerror(errno));



svn commit: samba r16102 - in trunk/source: .

2006-06-08 Thread paulg
Author: paulg
Date: 2006-06-08 18:40:24 + (Thu, 08 Jun 2006)
New Revision: 16102

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16102

Log:
Properly rebuild timelimit on systems with executable extensions.

Paul


Modified:
   trunk/source/Makefile.in


Changeset:
Modified: trunk/source/Makefile.in
===
--- trunk/source/Makefile.in2006-06-08 16:10:02 UTC (rev 16101)
+++ trunk/source/Makefile.in2006-06-08 18:40:24 UTC (rev 16102)
@@ -828,6 +828,8 @@
 
 talloctort : SHOWFLAGS bin/[EMAIL PROTECTED]@
 
+timelimit : SHOWFLAGS bin/[EMAIL PROTECTED]@
+
 nsswitch : SHOWFLAGS bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ 
@WINBIND_NSS@ \
@WINBIND_WINS_NSS@ bin/[EMAIL PROTECTED]@
 
@@ -1778,11 +1780,11 @@
 ##
 ## Targets for 'make test'
 ##
-test: all torture bin/timelimit
+test: all torture timelimit
@echo Running Test suite
@sh ./script/tests/selftest.sh ${selftest_prefix}/st all 
${smbtorture4_path}
 
-valgrindtest: all torture bin/timelimit
+valgrindtest: all torture timelimit
@echo Running Test suite with valgrind
@NMBD_VALGRIND=xterm -n smbd -e valgrind -q --db-attach=yes 
--num-callers=30 \
 SMBD_VALGRIND=xterm -n smbd -e valgrind -q --db-attach=yes 
--num-callers=30 \



svn commit: samba r16103 - in branches/SAMBA_3_0/source: .

2006-06-08 Thread paulg
Author: paulg
Date: 2006-06-08 18:41:15 + (Thu, 08 Jun 2006)
New Revision: 16103

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=16103

Log:
Properly rebuild timelimit on systems with executable extensions.

Paul


Modified:
   branches/SAMBA_3_0/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-06-08 18:40:24 UTC (rev 
16102)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-06-08 18:41:15 UTC (rev 
16103)
@@ -806,6 +806,8 @@
 
 talloctort : SHOWFLAGS bin/[EMAIL PROTECTED]@
 
+timelimit : SHOWFLAGS bin/[EMAIL PROTECTED]@
+
 nsswitch : SHOWFLAGS bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ 
@WINBIND_NSS@ \
@WINBIND_WINS_NSS@ bin/[EMAIL PROTECTED]@
 
@@ -1733,11 +1735,11 @@
 ##
 ## Targets for 'make test'
 ##
-test: all torture bin/timelimit
+test: all torture timelimit
@echo Running Test suite
@sh ./script/tests/selftest.sh ${selftest_prefix}/st all 
${smbtorture4_path}
 
-valgrindtest: all torture bin/timelimit
+valgrindtest: all torture timelimit
@echo Running Test suite with valgrind
@NMBD_VALGRIND=xterm -n smbd -e valgrind -q --db-attach=yes 
--num-callers=30 \
 SMBD_VALGRIND=xterm -n smbd -e valgrind -q --db-attach=yes 
--num-callers=30 \



svn commit: samba r15644 - in branches/SAMBA_3_0/source/include: .

2006-05-16 Thread paulg
Author: paulg
Date: 2006-05-16 17:02:26 + (Tue, 16 May 2006)
New Revision: 15644

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15644

Log:
Now that we are referencing uint32_t and other data types
defined in stdint.h, ensure that it is present. (Not all
implementations pull it in when sys/types.h is used).

Paul


Modified:
   branches/SAMBA_3_0/source/include/includes.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===
--- branches/SAMBA_3_0/source/include/includes.h2006-05-16 16:59:08 UTC 
(rev 15643)
+++ branches/SAMBA_3_0/source/include/includes.h2006-05-16 17:02:26 UTC 
(rev 15644)
@@ -93,6 +93,10 @@
 
 #include sys/types.h
 
+#ifdef HAVE_STDINT_H
+#include stdint.h
+#endif
+
 #ifdef TIME_WITH_SYS_TIME
 #include sys/time.h
 #include time.h



svn commit: samba r15645 - in trunk/source/include: .

2006-05-16 Thread paulg
Author: paulg
Date: 2006-05-16 17:04:56 + (Tue, 16 May 2006)
New Revision: 15645

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15645

Log:
Now that we are referencing uint32_t and other data types
defined in stdint.h, ensure that it is present. (Not all
implementations pull it in when sys/types.h is used).

Paul


Modified:
   trunk/source/include/includes.h


Changeset:
Modified: trunk/source/include/includes.h
===
--- trunk/source/include/includes.h 2006-05-16 17:02:26 UTC (rev 15644)
+++ trunk/source/include/includes.h 2006-05-16 17:04:56 UTC (rev 15645)
@@ -93,6 +93,10 @@
 
 #include sys/types.h
 
+#ifdef HAVE_STDINT_H
+#include stdint.h
+#endif
+
 #ifdef TIME_WITH_SYS_TIME
 #include sys/time.h
 #include time.h



svn commit: samba r15382 - in branches/SAMBA_4_0/source/lib/replace: .

2006-05-01 Thread paulg
Author: paulg
Date: 2006-05-01 20:57:15 + (Mon, 01 May 2006)
New Revision: 15382

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15382

Log:
Use grp.h in this block; it has been cleaned out of the other headers that 
formerly included it for us.

Paul

Modified:
   branches/SAMBA_4_0/source/lib/replace/replace.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/replace.c
===
--- branches/SAMBA_4_0/source/lib/replace/replace.c 2006-05-01 20:13:25 UTC 
(rev 15381)
+++ branches/SAMBA_4_0/source/lib/replace/replace.c 2006-05-01 20:57:15 UTC 
(rev 15382)
@@ -200,6 +200,9 @@
errno = ENOSYS;
return -1;
 #else /* HAVE_SETGROUPS */
+
+#include grp.h
+
gid_t *grouplst = NULL;
int max_gr = groups_max();
int ret;



svn commit: samba r15368 - in branches/SAMBA_3_0/source/auth: .

2006-04-30 Thread paulg
Author: paulg
Date: 2006-04-30 23:49:39 + (Sun, 30 Apr 2006)
New Revision: 15368

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15368

Log:
Remove some dead code. -- paulg
Modified:
   branches/SAMBA_3_0/source/auth/auth_script.c


Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_script.c
===
--- branches/SAMBA_3_0/source/auth/auth_script.c2006-04-30 23:11:59 UTC 
(rev 15367)
+++ branches/SAMBA_3_0/source/auth/auth_script.c2006-04-30 23:49:39 UTC 
(rev 15368)
@@ -140,15 +140,7 @@
return NT_STATUS_OK;
 }
 
-/* Define this to build static. */
 NTSTATUS auth_script_init(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#if 0
-/* Define this to build shared. */
-NTSTATUS init_module(void)
-{
-   return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
-}
-#endif



svn commit: samba r15369 - in trunk/source/auth: .

2006-04-30 Thread paulg
Author: paulg
Date: 2006-05-01 00:01:25 + (Mon, 01 May 2006)
New Revision: 15369

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15369

Log:
Remove some dead code. -- paulg
Modified:
   trunk/source/auth/auth_script.c


Changeset:
Modified: trunk/source/auth/auth_script.c
===
--- trunk/source/auth/auth_script.c 2006-04-30 23:49:39 UTC (rev 15368)
+++ trunk/source/auth/auth_script.c 2006-05-01 00:01:25 UTC (rev 15369)
@@ -140,15 +140,7 @@
return NT_STATUS_OK;
 }
 
-/* Define this to build static. */
 NTSTATUS auth_script_init(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#if 0
-/* Define this to build shared. */
-NTSTATUS init_module(void)
-{
-   return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
-}
-#endif



svn commit: samba r15282 - in trunk/source: . auth lib passdb sam smbd

2006-04-26 Thread paulg
Author: paulg
Date: 2006-04-26 14:56:27 + (Wed, 26 Apr 2006)
New Revision: 15282

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15282

Log:
This mod adds prototypes for previously unprototyped static initialization 
functions.  Some compilers (cough, cough), return structures (even structures 
that fit in 32 bits) differently than ints.  Without these prototypes, the 
compiled code doesn't work.  Anyway, it is good practice to prototype 
everything.  Once I see this mod build in head, I will also add it to the 
SAMBA_3_0 branch. I've been using these changes for quite some time on VOS.  -- 
paulg
Modified:
   trunk/source/aclocal.m4
   trunk/source/auth/auth.c
   trunk/source/auth/auth_script.c
   trunk/source/lib/iconv.c
   trunk/source/passdb/pdb_interface.c
   trunk/source/sam/idmap.c
   trunk/source/smbd/server.c
   trunk/source/smbd/vfs.c


Changeset:
Modified: trunk/source/aclocal.m4
===
--- trunk/source/aclocal.m4 2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/aclocal.m4 2006-04-26 14:56:27 UTC (rev 15282)
@@ -57,6 +57,7 @@
string_shared_modules=$string_shared_modules $1
elif test x$DEST = xSTATIC; then
[init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z])  $1_init();
+   [decl_static_modules_]translit([$4], [A-Z], 
[a-z])=$[decl_static_modules_]translit([$4], [A-Z], [a-z]) extern NTSTATUS 
$1_init();
string_static_modules=$string_static_modules $1
$4_STATIC=$$4_STATIC $2
AC_SUBST($4_STATIC)
@@ -73,6 +74,7 @@
AC_SUBST($1_STATIC)
AC_SUBST($1_MODULES)
AC_DEFINE_UNQUOTED([static_init_]translit([$1], [A-Z], [a-z]), 
[{$init_static_modules_]translit([$1], [A-Z], [a-z])[}], [Static init 
functions])
+   AC_DEFINE_UNQUOTED([static_decl_]translit([$1], [A-Z], [a-z]), 
[$decl_static_modules_]translit([$1], [A-Z], [a-z]), [Decl of Static init 
functions])
ifelse([$2], , :, [rm -f $2])
 ])
 

Modified: trunk/source/auth/auth.c
===
--- trunk/source/auth/auth.c2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/auth/auth.c2006-04-26 14:56:27 UTC (rev 15282)
@@ -23,6 +23,8 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
 
+static_decl_auth;
+
 static struct auth_init_function_entry *backends = NULL;
 
 static struct auth_init_function_entry *auth_find_backend_entry(const char 
*name);

Modified: trunk/source/auth/auth_script.c
===
--- trunk/source/auth/auth_script.c 2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/auth/auth_script.c 2006-04-26 14:56:27 UTC (rev 15282)
@@ -140,16 +140,14 @@
return NT_STATUS_OK;
 }
 
-#if 0
 /* Define this to build static. */
 NTSTATUS auth_script_init(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#else
+
 /* Define this to build shared. */
 NTSTATUS init_module(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#endif

Modified: trunk/source/lib/iconv.c
===
--- trunk/source/lib/iconv.c2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/lib/iconv.c2006-04-26 14:56:27 UTC (rev 15282)
@@ -51,6 +51,8 @@
  * @sa Samba Developers Guide
  **/
 
+static_decl_charset;
+
 static size_t ascii_pull(void *,const char **, size_t *, char **, size_t *);
 static size_t ascii_push(void *,const char **, size_t *, char **, size_t *);
 static size_t latin1_push(void *,const char **, size_t *, char **, size_t *);

Modified: trunk/source/passdb/pdb_interface.c
===
--- trunk/source/passdb/pdb_interface.c 2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/passdb/pdb_interface.c 2006-04-26 14:56:27 UTC (rev 15282)
@@ -30,6 +30,8 @@
 
 static struct samu *csamuser = NULL;
 
+static_decl_pdb;
+
 static struct pdb_init_function_entry *backends = NULL;
 
 static void lazy_initialize_passdb(void)

Modified: trunk/source/sam/idmap.c
===
--- trunk/source/sam/idmap.c2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/sam/idmap.c2006-04-26 14:56:27 UTC (rev 15282)
@@ -25,6 +25,8 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_IDMAP
 
+static_decl_idmap;
+
 struct idmap_function_entry {
const char *name;
struct idmap_methods *methods;

Modified: trunk/source/smbd/server.c
===
--- trunk/source/smbd/server.c  2006-04-26 14:42:47 UTC (rev 15281)
+++ trunk/source/smbd/server.c  2006-04-26 14:56:27 UTC (rev 15282)
@@ -22,6 +22,8 @@
 
 #include includes.h
 
+static_decl_rpc;
+
 static int

svn commit: samba r15283 - in branches/SAMBA_3_0/source: . auth lib passdb sam smbd

2006-04-26 Thread paulg
Author: paulg
Date: 2006-04-26 15:41:25 + (Wed, 26 Apr 2006)
New Revision: 15283

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15283

Log:
Oh yeah. The build farm doesn't do much with head.  OK, here is the patch to 
SAMBA_3_0 to declare prototypes for the initialization functions.  These are 
the same changes I just made to head.  --paulg
Modified:
   branches/SAMBA_3_0/source/aclocal.m4
   branches/SAMBA_3_0/source/auth/auth.c
   branches/SAMBA_3_0/source/auth/auth_script.c
   branches/SAMBA_3_0/source/lib/iconv.c
   branches/SAMBA_3_0/source/passdb/pdb_interface.c
   branches/SAMBA_3_0/source/sam/idmap.c
   branches/SAMBA_3_0/source/smbd/server.c
   branches/SAMBA_3_0/source/smbd/vfs.c


Changeset:
Modified: branches/SAMBA_3_0/source/aclocal.m4
===
--- branches/SAMBA_3_0/source/aclocal.m42006-04-26 14:56:27 UTC (rev 
15282)
+++ branches/SAMBA_3_0/source/aclocal.m42006-04-26 15:41:25 UTC (rev 
15283)
@@ -57,6 +57,7 @@
string_shared_modules=$string_shared_modules $1
elif test x$DEST = xSTATIC; then
[init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z])  $1_init();
+   [decl_static_modules_]translit([$4], [A-Z], 
[a-z])=$[decl_static_modules_]translit([$4], [A-Z], [a-z]) extern NTSTATUS 
$1_init();
string_static_modules=$string_static_modules $1
$4_STATIC=$$4_STATIC $2
AC_SUBST($4_STATIC)
@@ -73,6 +74,7 @@
AC_SUBST($1_STATIC)
AC_SUBST($1_MODULES)
AC_DEFINE_UNQUOTED([static_init_]translit([$1], [A-Z], [a-z]), 
[{$init_static_modules_]translit([$1], [A-Z], [a-z])[}], [Static init 
functions])
+   AC_DEFINE_UNQUOTED([static_decl_]translit([$1], [A-Z], [a-z]), 
[$decl_static_modules_]translit([$1], [A-Z], [a-z]), [Decl of Static init 
functions])
ifelse([$2], , :, [rm -f $2])
 ])
 

Modified: branches/SAMBA_3_0/source/auth/auth.c
===
--- branches/SAMBA_3_0/source/auth/auth.c   2006-04-26 14:56:27 UTC (rev 
15282)
+++ branches/SAMBA_3_0/source/auth/auth.c   2006-04-26 15:41:25 UTC (rev 
15283)
@@ -23,6 +23,8 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
 
+static_decl_auth;
+
 static struct auth_init_function_entry *backends = NULL;
 
 static struct auth_init_function_entry *auth_find_backend_entry(const char 
*name);

Modified: branches/SAMBA_3_0/source/auth/auth_script.c
===
--- branches/SAMBA_3_0/source/auth/auth_script.c2006-04-26 14:56:27 UTC 
(rev 15282)
+++ branches/SAMBA_3_0/source/auth/auth_script.c2006-04-26 15:41:25 UTC 
(rev 15283)
@@ -140,16 +140,14 @@
return NT_STATUS_OK;
 }
 
-#if 0
 /* Define this to build static. */
 NTSTATUS auth_script_init(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#else
+
 /* Define this to build shared. */
 NTSTATUS init_module(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-#endif

Modified: branches/SAMBA_3_0/source/lib/iconv.c
===
--- branches/SAMBA_3_0/source/lib/iconv.c   2006-04-26 14:56:27 UTC (rev 
15282)
+++ branches/SAMBA_3_0/source/lib/iconv.c   2006-04-26 15:41:25 UTC (rev 
15283)
@@ -51,6 +51,8 @@
  * @sa Samba Developers Guide
  **/
 
+static_decl_charset;
+
 static size_t ascii_pull(void *,const char **, size_t *, char **, size_t *);
 static size_t ascii_push(void *,const char **, size_t *, char **, size_t *);
 static size_t latin1_push(void *,const char **, size_t *, char **, size_t *);

Modified: branches/SAMBA_3_0/source/passdb/pdb_interface.c
===
--- branches/SAMBA_3_0/source/passdb/pdb_interface.c2006-04-26 14:56:27 UTC 
(rev 15282)
+++ branches/SAMBA_3_0/source/passdb/pdb_interface.c2006-04-26 15:41:25 UTC 
(rev 15283)
@@ -30,6 +30,8 @@
 
 static struct samu *csamuser = NULL;
 
+static_decl_pdb;
+
 static struct pdb_init_function_entry *backends = NULL;
 
 static void lazy_initialize_passdb(void)

Modified: branches/SAMBA_3_0/source/sam/idmap.c
===
--- branches/SAMBA_3_0/source/sam/idmap.c   2006-04-26 14:56:27 UTC (rev 
15282)
+++ branches/SAMBA_3_0/source/sam/idmap.c   2006-04-26 15:41:25 UTC (rev 
15283)
@@ -25,6 +25,8 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_IDMAP
 
+static_decl_idmap;
+
 struct idmap_function_entry {
const char *name;
struct idmap_methods *methods;

Modified: branches/SAMBA_3_0/source/smbd/server.c
===
--- branches/SAMBA_3_0/source/smbd/server.c 2006-04-26 14:56:27 UTC

svn commit: samba r15285 - in branches/SAMBA_3_0/source/auth: .

2006-04-26 Thread paulg
Author: paulg
Date: 2006-04-26 16:18:02 + (Wed, 26 Apr 2006)
New Revision: 15285

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15285

Log:
Fix the build.
Modified:
   branches/SAMBA_3_0/source/auth/auth_script.c


Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_script.c
===
--- branches/SAMBA_3_0/source/auth/auth_script.c2006-04-26 15:55:04 UTC 
(rev 15284)
+++ branches/SAMBA_3_0/source/auth/auth_script.c2006-04-26 16:18:02 UTC 
(rev 15285)
@@ -145,9 +145,10 @@
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
-
+#if 0
 /* Define this to build shared. */
 NTSTATUS init_module(void)
 {
return smb_register_auth(AUTH_INTERFACE_VERSION, script, 
auth_init_script);
 }
+#endif



svn commit: samba r15195 - in trunk/source/smbd: .

2006-04-24 Thread paulg
Author: paulg
Date: 2006-04-24 10:44:26 + (Mon, 24 Apr 2006)
New Revision: 15195

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15195

Log:
Update a comment that I found confusing (I confuse easily).
Modified:
   trunk/source/smbd/dir.c


Changeset:
Modified: trunk/source/smbd/dir.c
===
--- trunk/source/smbd/dir.c 2006-04-24 10:09:45 UTC (rev 15194)
+++ trunk/source/smbd/dir.c 2006-04-24 10:44:26 UTC (rev 15195)
@@ -719,7 +719,7 @@
 }
 
 /
- Check a filetype for being valid.
+ Check that a file matches a particular file type.
 /
 
 BOOL dir_check_ftype(connection_struct *conn, uint32 mode, uint32 dirtype)




svn commit: samba r15196 - in branches/SAMBA_3_0/source/smbd: .

2006-04-24 Thread paulg
Author: paulg
Date: 2006-04-24 10:45:06 + (Mon, 24 Apr 2006)
New Revision: 15196

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15196

Log:
Update a comment that I found confusing (I confuse easily).
Modified:
   branches/SAMBA_3_0/source/smbd/dir.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dir.c
===
--- branches/SAMBA_3_0/source/smbd/dir.c2006-04-24 10:44:26 UTC (rev 
15195)
+++ branches/SAMBA_3_0/source/smbd/dir.c2006-04-24 10:45:06 UTC (rev 
15196)
@@ -719,7 +719,7 @@
 }
 
 /
- Check a filetype for being valid.
+ Check that a file matches a particular file type.
 /
 
 BOOL dir_check_ftype(connection_struct *conn, uint32 mode, uint32 dirtype)



svn commit: samba r15217 - in trunk/source: .

2006-04-24 Thread paulg
Author: paulg
Date: 2006-04-24 17:11:31 + (Mon, 24 Apr 2006)
New Revision: 15217

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15217

Log:
Update Makefile.in to avoid building libmsrpc.so on systems that do not support 
shared libraries.
Modified:
   trunk/source/Makefile.in


Changeset:
Modified: trunk/source/Makefile.in
===
--- trunk/source/Makefile.in2006-04-24 16:29:55 UTC (rev 15216)
+++ trunk/source/Makefile.in2006-04-24 17:11:31 UTC (rev 15217)
@@ -156,7 +156,7 @@
 EVERYTHING_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ bin/[EMAIL 
PROTECTED]@ \
bin/[EMAIL PROTECTED]@
 
-SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ cac
+SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@
 
 PAM_MODULES = @PAM_MODULES@
 
@@ -705,7 +705,6 @@
 PICOBJS = $(SMBWRAPPER_OBJ:[EMAIL PROTECTED]@)
 LIBSMBCLIENT_PICOBJS = $(LIBSMBCLIENT_OBJ:[EMAIL PROTECTED]@)
 LIBSMBSHAREMODES_PICOBJS = $(LIBSMBSHAREMODES_OBJ:[EMAIL PROTECTED]@)
-
 CAC_PICOBJS = $(CAC_OBJ:[EMAIL PROTECTED]@)
 
 
@@ -827,7 +826,7 @@
 
 modules: SHOWFLAGS proto_exists $(MODULES)
 
-cac: SHOWFLAGS bin/[EMAIL PROTECTED]@ bin/libmsrpc.a
+cac: SHOWFLAGS $(LIBMSRPC)
 
 everything: all libsmbclient debug2html smbfilter talloctort modules torture \
$(EVERYTHING_PROGS)
@@ -1151,6 +1150,7 @@
 
 libsmbclient: $(LIBSMBCLIENT)
 libsmbsharemodes: $(LIBSMBSHAREMODES)
+libmsrpc: $(LIBMSRPC)
 
 bin/[EMAIL PROTECTED]@: $(RPC_LSA_OBJ)
@echo Linking $@



svn commit: samba r15218 - in branches/SAMBA_3_0/source: .

2006-04-24 Thread paulg
Author: paulg
Date: 2006-04-24 17:12:22 + (Mon, 24 Apr 2006)
New Revision: 15218

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15218

Log:
Update Makefile.in to avoid building libmsrpc.so on systems that do not support 
shared libraries.
Modified:
   branches/SAMBA_3_0/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-04-24 17:11:31 UTC (rev 
15217)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-04-24 17:12:22 UTC (rev 
15218)
@@ -156,7 +156,7 @@
 EVERYTHING_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ bin/[EMAIL 
PROTECTED]@ \
bin/[EMAIL PROTECTED]@
 
-SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ cac
+SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@
 
 PAM_MODULES = @PAM_MODULES@
 
@@ -690,7 +690,6 @@
 PICOBJS = $(SMBWRAPPER_OBJ:[EMAIL PROTECTED]@)
 LIBSMBCLIENT_PICOBJS = $(LIBSMBCLIENT_OBJ:[EMAIL PROTECTED]@)
 LIBSMBSHAREMODES_PICOBJS = $(LIBSMBSHAREMODES_OBJ:[EMAIL PROTECTED]@)
-
 CAC_PICOBJS = $(CAC_OBJ:[EMAIL PROTECTED]@)
 
 
@@ -810,7 +809,7 @@
 
 modules: SHOWFLAGS proto_exists $(MODULES)
 
-cac: SHOWFLAGS bin/[EMAIL PROTECTED]@ bin/libmsrpc.a
+cac: SHOWFLAGS $(LIBMSRPC)
 
 everything: all libsmbclient debug2html smbfilter talloctort modules torture \
$(EVERYTHING_PROGS)
@@ -1126,6 +1125,7 @@
 
 libsmbclient: $(LIBSMBCLIENT)
 libsmbsharemodes: $(LIBSMBSHAREMODES)
+libmsrpc: $(LIBMSRPC)
 
 bin/[EMAIL PROTECTED]@: $(RPC_LSA_OBJ)
@echo Linking $@



svn commit: samba r11653 - in branches/SAMBA_3_0/source: .

2005-11-10 Thread paulg
Author: paulg
Date: 2005-11-10 20:32:00 + (Thu, 10 Nov 2005)
New Revision: 11653

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11653

Log:
Declare the correct return value for the static initialization functions.
Some compilers (guess whose) have ABIs that return int values using a
different method than returning struct values.


Modified:
   branches/SAMBA_3_0/source/aclocal.m4


Changeset:
Modified: branches/SAMBA_3_0/source/aclocal.m4
===
--- branches/SAMBA_3_0/source/aclocal.m42005-11-10 20:28:23 UTC (rev 
11652)
+++ branches/SAMBA_3_0/source/aclocal.m42005-11-10 20:32:00 UTC (rev 
11653)
@@ -56,7 +56,7 @@
[$6]
string_shared_modules=$string_shared_modules $1
elif test x$DEST = xSTATIC; then
-   [init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z]) $1_init();
+   [init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z]) NTSTATUS $1_init();
string_static_modules=$string_static_modules $1
$4_STATIC=$$4_STATIC $2
AC_SUBST($4_STATIC)



svn commit: samba r11654 - in trunk/source: .

2005-11-10 Thread paulg
Author: paulg
Date: 2005-11-10 20:33:32 + (Thu, 10 Nov 2005)
New Revision: 11654

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11654

Log:
Declare the correct return value for the static initialization functions.
Some compilers (guess whose) have ABIs that return int values using a
different method than returning struct values.


Modified:
   trunk/source/aclocal.m4


Changeset:
Modified: trunk/source/aclocal.m4
===
--- trunk/source/aclocal.m4 2005-11-10 20:32:00 UTC (rev 11653)
+++ trunk/source/aclocal.m4 2005-11-10 20:33:32 UTC (rev 11654)
@@ -56,7 +56,7 @@
[$6]
string_shared_modules=$string_shared_modules $1
elif test x$DEST = xSTATIC; then
-   [init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z]) $1_init();
+   [init_static_modules_]translit([$4], [A-Z], 
[a-z])=$[init_static_modules_]translit([$4], [A-Z], [a-z]) NTSTATUS $1_init();
string_static_modules=$string_static_modules $1
$4_STATIC=$$4_STATIC $2
AC_SUBST($4_STATIC)



svn commit: samba r11656 - in trunk/source/smbd: .

2005-11-10 Thread paulg
Author: paulg
Date: 2005-11-10 21:33:17 + (Thu, 10 Nov 2005)
New Revision: 11656

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11656

Log:
Tiny improvement to debug error message in dir_check_ftype.


Modified:
   trunk/source/smbd/dir.c


Changeset:
Modified: trunk/source/smbd/dir.c
===
--- trunk/source/smbd/dir.c 2005-11-10 21:10:24 UTC (rev 11655)
+++ trunk/source/smbd/dir.c 2005-11-10 21:33:17 UTC (rev 11656)
@@ -802,7 +802,7 @@
*mode = dos_mode(conn,pathreal,sbuf);
 
if (!dir_check_ftype(conn,*mode,dirtype)) {
-   DEBUG(5,([%s] attribs didn't match 
%x\n,filename,(unsigned int)dirtype));
+   DEBUG(5,([%s] attribs 0x%x didn't match 
0x%x\n,filename,(unsigned int)*mode,(unsigned int)dirtype));
continue;
}
 



svn commit: samba r11657 - in branches/SAMBA_3_0/source/smbd: .

2005-11-10 Thread paulg
Author: paulg
Date: 2005-11-10 21:34:25 + (Thu, 10 Nov 2005)
New Revision: 11657

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11657

Log:
Tiny improvement to debug error message in dir_check_ftype.


Modified:
   branches/SAMBA_3_0/source/smbd/dir.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dir.c
===
--- branches/SAMBA_3_0/source/smbd/dir.c2005-11-10 21:33:17 UTC (rev 
11656)
+++ branches/SAMBA_3_0/source/smbd/dir.c2005-11-10 21:34:25 UTC (rev 
11657)
@@ -802,7 +802,7 @@
*mode = dos_mode(conn,pathreal,sbuf);
 
if (!dir_check_ftype(conn,*mode,dirtype)) {
-   DEBUG(5,([%s] attribs didn't match 
%x\n,filename,(unsigned int)dirtype));
+   DEBUG(5,([%s] attribs 0x%x didn't match 
0x%x\n,filename,(unsigned int)*mode,(unsigned int)dirtype));
continue;
}
 



svn commit: samba r11375 - in branches/SAMBA_3_0/source: .

2005-10-28 Thread paulg
Author: paulg
Date: 2005-10-28 16:17:46 + (Fri, 28 Oct 2005)
New Revision: 11375

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11375

Log:
Update to the latest config.guess and config.sub files.


Modified:
   branches/SAMBA_3_0/source/config.guess
   branches/SAMBA_3_0/source/config.sub


Changeset:
Sorry, the patch is too large (1593 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11375


svn commit: samba r2231 - in branches/SAMBA_3_0/source/lib: .

2004-09-05 Thread paulg
Author: paulg
Date: 2004-09-06 00:24:28 + (Mon, 06 Sep 2004)
New Revision: 2231

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/librev=2231nolog=1

Log:
Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t type, which does not 
exist on all platforms.
Modified:
   branches/SAMBA_3_0/source/lib/iconv.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/iconv.c
===
--- branches/SAMBA_3_0/source/lib/iconv.c   2004-09-05 04:05:45 UTC (rev 2230)
+++ branches/SAMBA_3_0/source/lib/iconv.c   2004-09-06 00:24:28 UTC (rev 2231)
@@ -541,8 +541,8 @@
 char **outbuf, size_t *outbytesleft)
 {
size_t in_left=*inbytesleft, out_left=*outbytesleft;
-   const uint8_t *c = (const uint8_t *)*inbuf;
-   uint8_t *uc = (uint8_t *)*outbuf;
+   const uint8 *c = (const uint8 *)*inbuf;
+   uint8 *uc = (uint8 *)*outbuf;
 
while (in_left = 1  out_left = 2) {
if ((c[0]  0x80) == 0) {
@@ -658,8 +658,8 @@
char **outbuf, size_t *outbytesleft)
 {
size_t in_left=*inbytesleft, out_left=*outbytesleft;
-   uint8_t *c = (uint8_t *)*outbuf;
-   const uint8_t *uc = (const uint8_t *)*inbuf;
+   uint8 *c = (uint8 *)*outbuf;
+   const uint8 *uc = (const uint8 *)*inbuf;
 
while (in_left = 2  out_left = 1) {
unsigned int codepoint;



svn commit: samba r1987 - branches/SAMBA_2_2/source

2004-08-21 Thread paulg
Author: paulg
Date: 2004-08-21 12:21:03 + (Sat, 21 Aug 2004)
New Revision: 1987

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=1987nolog=1

Log:
Let Samba use all POSIX features available on VOS.

paulg
Modified:
   branches/SAMBA_2_2/source/configure.in


Changeset:
Modified: branches/SAMBA_2_2/source/configure.in
===
--- branches/SAMBA_2_2/source/configure.in  2004-08-21 11:48:46 UTC (rev 1986)
+++ branches/SAMBA_2_2/source/configure.in  2004-08-21 12:21:03 UTC (rev 1987)
@@ -327,8 +327,9 @@
  *-D_POSIX_C_SOURCE*)
;;
  *)
-   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=199506L
-   AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Whether to enable POSIX support])
+   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=200112L
+   AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Whether to enable
+POSIX support])
;;
 esac
 case $CPPFLAGS in



svn commit: samba r1988 - branches/SAMBA_4_0/source/build/m4

2004-08-21 Thread paulg
Author: paulg
Date: 2004-08-21 12:23:02 + (Sat, 21 Aug 2004)
New Revision: 1988

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=1988nolog=1

Log:
Let Samba use all POSIX features available on VOS.

paulg
Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4   2004-08-21 12:21:03 UTC (rev 
1987)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4   2004-08-21 12:23:02 UTC (rev 
1988)
@@ -110,8 +110,8 @@
  *-D_POSIX_C_SOURCE*)
;;
  *)
-   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=199506L
-   AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Whether to enable POSIX support])
+   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=200112L
+   AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Whether to enable POSIX support])
;;
 esac
 case $CPPFLAGS in



svn commit: samba r1889 - branches/SAMBA_2_2/source/lib

2004-08-18 Thread paulg
Author: paulg
Date: 2004-08-18 17:54:57 + (Wed, 18 Aug 2004)
New Revision: 1889

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=1889nolog=1

Log:
Cut down on debug messages from is_in_path.  paulg
Modified:
   branches/SAMBA_2_2/source/lib/util.c


Changeset:
Modified: branches/SAMBA_2_2/source/lib/util.c
===
--- branches/SAMBA_2_2/source/lib/util.c2004-08-18 16:25:41 UTC (rev 1888)
+++ branches/SAMBA_2_2/source/lib/util.c2004-08-18 17:54:57 UTC (rev 1889)
@@ -1142,15 +1142,14 @@
   pstring last_component;
   char *p;
 
-  DEBUG(8, (is_in_path: %s\n, name));
-
   /* if we have no list it's obviously not in the path */
   if((namelist == NULL ) || ((namelist != NULL)  (namelist[0].name == NULL))) 
   {
-DEBUG(8,(is_in_path: no name list.\n));
 return False;
   }
 
+  DEBUG(8, (is_in_path: %s\n, name));
+
   /* Get the last component of the unix name. */
   p = strrchr(name, '/');
   strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);



svn commit: samba r1890 - branches/SAMBA_3_0/source/lib

2004-08-18 Thread paulg
Author: paulg
Date: 2004-08-18 17:55:50 + (Wed, 18 Aug 2004)
New Revision: 1890

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=1890nolog=1

Log:
Cut down on debug messages from is_in_path.  paulg
Modified:
   branches/SAMBA_3_0/source/lib/util.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util.c
===
--- branches/SAMBA_3_0/source/lib/util.c2004-08-18 17:54:57 UTC (rev 1889)
+++ branches/SAMBA_3_0/source/lib/util.c2004-08-18 17:55:50 UTC (rev 1890)
@@ -1495,14 +1495,13 @@
pstring last_component;
char *p;
 
-   DEBUG(8, (is_in_path: %s\n, name));
-
/* if we have no list it's obviously not in the path */
if((namelist == NULL ) || ((namelist != NULL)  (namelist[0].name == NULL))) {
-   DEBUG(8,(is_in_path: no name list.\n));
return False;
}
 
+   DEBUG(8, (is_in_path: %s\n, name));
+
/* Get the last component of the unix name. */
p = strrchr_m(name, '/');
strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);



svn commit: samba r1891 - trunk/source/lib

2004-08-18 Thread paulg
Author: paulg
Date: 2004-08-18 17:56:50 + (Wed, 18 Aug 2004)
New Revision: 1891

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=1891nolog=1

Log:
Cut down on debug messages from is_in_path.  paulg
Modified:
   trunk/source/lib/util.c


Changeset:
Modified: trunk/source/lib/util.c
===
--- trunk/source/lib/util.c 2004-08-18 17:55:50 UTC (rev 1890)
+++ trunk/source/lib/util.c 2004-08-18 17:56:50 UTC (rev 1891)
@@ -1495,14 +1495,13 @@
pstring last_component;
char *p;
 
-   DEBUG(8, (is_in_path: %s\n, name));
-
/* if we have no list it's obviously not in the path */
if((namelist == NULL ) || ((namelist != NULL)  (namelist[0].name == NULL))) {
-   DEBUG(8,(is_in_path: no name list.\n));
return False;
}
 
+   DEBUG(8, (is_in_path: %s\n, name));
+
/* Get the last component of the unix name. */
p = strrchr_m(name, '/');
strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);



svn commit: samba r1669 - in branches/SAMBA_2_2/source: include lib

2004-08-08 Thread paulg
Author: paulg
Date: 2004-08-08 20:29:03 + (Sun, 08 Aug 2004)
New Revision: 1669
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_2_2/sourcerev=1669nolog=1
Log:
Backport samba_3_0 version of snprintf.c to fix build problems on Stratus VOS. We have 
snprintf and vsnprintf but not vsyslog, and the 2.2 version of the code can't deal 
with this.
Modified:
   branches/SAMBA_2_2/source/include/includes.h
   branches/SAMBA_2_2/source/lib/replace.c
   branches/SAMBA_2_2/source/lib/snprintf.c

Changeset:
Sorry the patch is to large, please use WebSVN to see it!


svn commit: samba r192 - branches/SAMBA_3_0/source

2004-04-13 Thread paulg
Author: paulg
Date: 2004-04-13 12:28:38 + (Tue, 13 Apr 2004)
New Revision: 192

Modified:
   branches/SAMBA_3_0/source/configure.in
Log:
Fix configure.in to only use $BLDSHARED to select whether to build static or shared 
libraries.

WebSVN: http://websvn.samba.org/websvn/listing.php?rep=0path=/rev=192sc=1


svn commit: samba r193 - trunk/source

2004-04-13 Thread paulg
Author: paulg
Date: 2004-04-13 12:31:17 + (Tue, 13 Apr 2004)
New Revision: 193

Modified:
   trunk/source/configure.in
Log:
Fix configure.in to only use $BLDSHARED to select whether to build static or shared 
libraries.

WebSVN: http://websvn.samba.org/websvn/listing.php?rep=0path=/rev=193sc=1


svn commit: samba r202 - branches/SAMBA_4_0/source

2004-04-13 Thread paulg
Author: paulg
Date: 2004-04-13 21:35:43 + (Tue, 13 Apr 2004)
New Revision: 202

Modified:
   branches/SAMBA_4_0/source/aclocal.m4
Log:
Fix aclocal.m4 to only use $BLDSHARED to select whether to build static or shared 
libraries.

WebSVN: http://websvn.samba.org/websvn/listing.php?rep=0path=/rev=202sc=1


svn commit: samba r143 - trunk/source

2004-04-10 Thread paulg
Author: paulg
Date: 2004-04-10 14:25:43 + (Sat, 10 Apr 2004)
New Revision: 143

Modified:
   trunk/source/configure.in
Log:
Move first use of AC_CHECK_HEADERS so it is always executed. Tidy up indendation.

WebSVN: http://websvn.samba.org/websvn/listing.php?rep=0path=/rev=143sc=1


svn commit: samba r144 - branches/SAMBA_3_0/source

2004-04-10 Thread paulg
Author: paulg
Date: 2004-04-10 14:26:19 + (Sat, 10 Apr 2004)
New Revision: 144

Modified:
   branches/SAMBA_3_0/source/configure.in
Log:
Move first use of AC_CHECK_HEADERS so it is always executed. Tidy up indendation.

WebSVN: http://websvn.samba.org/websvn/listing.php?rep=0path=/rev=144sc=1


svn commit: samba r90 - trunk/source

2004-04-06 Thread paulg
Author: paulg
Date: 2004-04-06 22:00:09 + (Tue, 06 Apr 2004)
New Revision: 90

Modified:
   trunk/source/configure.in
Log:
Update VOS _POSIX_C_SOURCE macro to 200112L.



svn commit: samba r93 - branches/SAMBA_3_0/source

2004-04-06 Thread paulg
Author: paulg
Date: 2004-04-06 22:12:21 + (Tue, 06 Apr 2004)
New Revision: 93

Modified:
   branches/SAMBA_3_0/source/configure.in
Log:
Update VOS _POSIX_C_SOURCE macro to 200112L.



[Samba] Re: 5664ddff?$??ยง2

2004-02-26 Thread paulg
does it matter?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba