]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
updated 2_0_release tree with 2.0.8 changes
authorAndrew Tridgell <tridge@samba.org>
Sat, 23 Jun 2001 06:13:00 +0000 (06:13 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 23 Jun 2001 06:13:00 +0000 (06:13 +0000)
87 files changed:
WHATSNEW.txt
docs/htmldocs/smbspool.8.html
docs/manpages/lmhosts.5
docs/manpages/make_smbcodepage.1
docs/manpages/make_unicodemap.1
docs/manpages/nmbd.8
docs/manpages/nmblookup.1
docs/manpages/samba.7
docs/manpages/smb.conf.5
docs/manpages/smbclient.1
docs/manpages/smbd.8
docs/manpages/smbmnt.8
docs/manpages/smbmount.8
docs/manpages/smbpasswd.5
docs/manpages/smbpasswd.8
docs/manpages/smbrun.1
docs/manpages/smbsh.1
docs/manpages/smbspool.8
docs/manpages/smbstatus.1
docs/manpages/smbtar.1
docs/manpages/smbumount.8
docs/manpages/swat.8
docs/manpages/testparm.1
docs/manpages/testprns.1
docs/textdocs/Application_Serving.txt
docs/textdocs/BROWSING-Config.txt
docs/textdocs/BROWSING.txt
docs/textdocs/BUGS.txt
docs/textdocs/CRLF-LF-Conversions.txt
docs/textdocs/CVS_ACCESS.txt
docs/textdocs/DHCP-Server-Configuration.txt
docs/textdocs/DIAGNOSIS.txt
docs/textdocs/DNIX.txt
docs/textdocs/DOMAIN.txt
docs/textdocs/DOMAIN_CONTROL.txt
docs/textdocs/DOMAIN_MEMBER.txt
docs/textdocs/ENCRYPTION.txt
docs/textdocs/Faxing.txt
docs/textdocs/File-Cacheing.txt
docs/textdocs/GOTCHAS.txt
docs/textdocs/HINTS.txt
docs/textdocs/MIRRORS.txt
docs/textdocs/Macintosh_Clients.txt
docs/textdocs/NT-Guest-Access.txt
docs/textdocs/NTDOMAIN.txt
docs/textdocs/NT_Security.txt
docs/textdocs/NetBIOS.txt
docs/textdocs/OS2-Client-HOWTO.txt
docs/textdocs/PRINTER_DRIVER.txt
docs/textdocs/PROFILES.txt
docs/textdocs/Passwords.txt
docs/textdocs/Printing.txt
docs/textdocs/Recent-FAQs.txt
docs/textdocs/RoutedNetworks.txt
docs/textdocs/SCO.txt
docs/textdocs/SSLeay.txt
docs/textdocs/Speed.txt
docs/textdocs/Speed2.txt
docs/textdocs/Support.txt
docs/textdocs/Tracing.txt
docs/textdocs/UNIX-SMB.txt
docs/textdocs/UNIX_INSTALL.txt
docs/textdocs/UNIX_SECURITY.txt
docs/textdocs/Win95.txt
docs/textdocs/WinNT.txt
docs/textdocs/cifsntdomain.txt
docs/textdocs/security_level.txt
docs/textdocs/smbmount.txt
docs/yodldocs/smbspool.8.yo
packaging/PHT/TurboLinux/samba2.spec.tmpl
packaging/SGI/idb.pl
source/acconfig.h
source/client/client.c
source/configure
source/configure.in
source/include/config.h.in
source/include/proto.h
source/include/version.h
source/lib/util.c
source/nmbd/nmbd_processlogon.c
source/printing/printing.c
source/smbd/fileio.c
source/smbd/message.c
source/smbd/reply.c
source/smbwrapper/shared.c
source/utils/testparm.c
swat/help/welcome.html

index 432ce03a7fa5505f9d60b268343dc73e6e6b8e50..af19a014802f5ae02aee817ffe1afe7318bd7461 100644 (file)
@@ -1,6 +1,29 @@
-              WHATS NEW IN Samba 2.0.7
+              WHATS NEW IN Samba 2.0.8
               ========================
 
+Samba 2.0.8 is a security bugfix release. Previous versions of Samba
+had a bug with the handling of temporary files that allows local users
+to destroy data on local devices. This bug was discovered during a
+routine security audit by Caldera. While no exploitation of this bug
+is known to have occurred it is fairly easy to exploit so sites with
+untrusted local users should take the threat seriously.
+
+The only changes in 2.0.8 are the security updates. This is to
+maximise stability for those sites that cannot afford to risk any
+other sort of update. For most sites the Samba Team recommends that
+the new 2.2.x version of Samba be used instead, as that provides not
+only the security fixes but much greater functionality and many more
+bug fixes.
+
+
+Samba Team
+April 2001
+
+
+
+Previous release notes from 2.0.7
+---------------------------------
+
 This is the latest stable release of Samba. This is the
 version that all production Samba servers should be running
 for all current bug-fixes.
index f531c9b48ff8af08265cd8126fd84776830ec4ea..53c0f8306f7d837950a9b67ca6a761abc4c23f27 100644 (file)
@@ -3,6 +3,7 @@
  
 
 
+
 <html><head><title>smbspool (1)</title>
 
 <link rev="made" href="mailto:samba@samba.org">
 <h2>Samba</h2>
 <h2>11 October 1999</h2>
 
-    
 
     
-<p><br><a name="NAME"></a>
+<p><a name="NAME"></a>
+<p><a name="NAME"></a>
 <h2>NAME</h2>
-    smbspool - send print file to an SMB printer
-<p><br><a name="SYNOPSIS"></a>
+    smbspool - mount an SMB filesystem
+<p><a name="SYNOPSIS"></a>
 <h2>SYNOPSIS</h2>
     
 <strong>smbspool</strong> job user title copies options [filename]
-<p><br><a name="DESCRIPTION"></a>
+<p><a name="DESCRIPTION"></a>
 <h2>DESCRIPTION</h2>
     
-<p><br>This program is part of the Samba suite.
-<p><br>smbspool is a very small print spooling program that sends a print
-file to an SMB printer. The command-line arguments are position-dependent for
+<p>This program is part of the Samba suite.
+<p>smbspool is a very small print spooling program that sends a print
+file to a SMB printer. The command-line arguments are position-dependent for
 compatibility with the Common UNIX Printing System, but you can use
 smbspool with any printing system or from a program or script.
-<p><br><h2>DEVICE URI</h2>
+<p><h2>DEVICE URI</h2>
     
-<p><br>smbspool specifies the destination using a Uniform Resource Identifier
+<p>smbspool specifies the destination using a Uniform Resource Identifier
 ("URI") with a method of "smb". This string can take a number of
 forms:
-<p><br><ul>
+<p><dl>
 <li > smb://server/printer
-<p><br><li > smb://workgroup/server/printer
-<p><br><li > smb://username:password@server/printer
-<p><br><li > smb://username:password@workgroup/server/printer
-<p><br></ul>
-<p><br>smbspool tries to get the URI from argv[0]. If argv[0] contains the
+<p><li > smb://workgroup/server/printer
+<p><li > smb://username:password@server/printer
+<p><li > smb://username:password@workgroup/server/printer
+<p></dl>
+<p>smbspool tries to get the URI from argv[0]. If argv[0] contains the
 name of the program then it looks in the DEVICE_URI environment variable.
-<p><br>Programs using the exec(2) functions can pass the URI in argv[0],
+<p>Programs using the exec(2) functions can pass the URI in argv[0],
 while shell scripts must set the DEVICE_URI environment variable prior to
 running smbspool.
-<p><br><h2>OPTIONS</h2>
+<p><h2>OPTIONS</h2>
     
-<p><br>The job argument (argv[1]) contains the job ID number and is presently
+<p>The job argument (argv[1]) contains the job ID number and is presently
 not used by smbspool.
-<p><br>The user argument (argv[2]) contains the print user's name and is
+<p>The user argument (argv[2]) contains the print user's name and is
 presently not used by smbspool.
-<p><br>The title argument (argv[3]) contains the job title string and is
+<p>The title argument (argv[3]) contains the job title string and is
 passed as the remote file name when sending the print job.
-<p><br>The copies argument (argv[4]) contains the number of copies to be
+<p>The copies argument (argv[4]) contains the number of copies to be
 printed of the named file. If no filename is provided than this argument is
 not used by smbspool.
-<p><br>The options argument (argv[5]) contains the print options in a single
+<p>The options argument (argv[5]) contains the print options in a single
 string and is presently not used by smbspool.
-<p><br>The filename argument (argv[6]) contains the name of the file to print.
+<p>The filename argument (argv[6]) contains the name of the file to print.
 If this argument is not specified then the print file is read from the
 standard input.
-<p><br><a name="VERSION"></a>
+<p><a name="VERSION"></a>
 <h2>VERSION</h2>
     
-<p><br>This man page is correct for version 2.0 of the Samba suite.
-<p><br><a name="SEEALSO"></a>
+<p>This man page is correct for version 2\&amp;.0 of the Samba suite\&amp;.
+<p><a name="SEEALSO"></a>
 <h2>SEE ALSO</h2>
     
 <a href="smbd.8.html"><strong>smbd (8)</strong></a>
-<p><br><a name="AUTHOR"></a>
+<p><a name="AUTHOR"></a>
 <h2>AUTHOR</h2>
     
-<p><br>smbspool was written by Michael Sweet at Easy Software Products.
-<p><br>The original Samba software and related utilities were created by
+<p>smbspool was written by Michael Sweet at Easy Software Products.
+<p>The original Samba software and related utilities were created by
 Andrew Tridgell samba@samba.org. Samba is now developed
 by the Samba Team as an Open Source project similar to the way the
 Linux kernel is developed.
-<p><br>See samba (7) to find out how to get a full
+<p>See samba (7) to find out how to get a full
 list of contributors and details on how to submit bug reports,
 comments etc.
 </body>
index 37d96ef35cc0faba4e4ff5bb8eed9c90dbc6d882..26de6719a90a18a3aca45370d7fa8d3d2c183cf2 100644 (file)
@@ -1,4 +1,4 @@
-.TH LMHOSTS 5 "26 Apr 2000" "lmhosts 2.0.7"
+.TH LMHOSTS 5 "17 Apr 2001" "lmhosts 2.0.8"
 .PP 
 .SH "NAME" 
 lmhosts \- The Samba NetBIOS hosts file
index ffacf2903fffe9efde420b72fac2de9c28e849be..2ee4f488a3806a690018424615f53f0abd35eae0 100644 (file)
@@ -1,4 +1,4 @@
-.TH MAKE_SMBCODEPAGE 1 "26 Apr 2000" "make_smbcodepage 2.0.7"
+.TH MAKE_SMBCODEPAGE 1 "17 Apr 2001" "make_smbcodepage 2.0.8"
 .PP 
 .SH "NAME" 
 make_smbcodepage \- Construct a codepage file for Samba
index 9319f9ba4e2a6e8593e16a979d0c0c59dc62935f..4bbb5b4aa01507df3b77032105c100cf230a2b48 100644 (file)
@@ -1,4 +1,4 @@
-.TH MAKE_UNICODEMAP 1 "26 Apr 2000" "make_unicodemap 2.0.7"
+.TH MAKE_UNICODEMAP 1 "17 Apr 2001" "make_unicodemap 2.0.8"
 .PP 
 .SH "NAME" 
 make_unicodemap \- Construct a unicode map file for Samba
index 3475212806b19f2aeb1c8c8a91076560aa8aa168..02e31b3bc7f70d52dec48b1b2bfb2de689fc1a4b 100644 (file)
@@ -1,4 +1,4 @@
-.TH NMBD 8 "26 Apr 2000" "nmbd 2.0.7"
+.TH NMBD 8 "17 Apr 2001" "nmbd 2.0.8"
 .PP 
 .SH "NAME" 
 nmbd \- NetBIOS name server to provide NetBIOS over IP
index 487a2c93afcb9dc7fbe1ad025ebad7b81be7446e..edc82fb236bb8e5551cd204e2fe67a72293d615b 100644 (file)
@@ -1,4 +1,4 @@
-.TH NMBLOOKUP 1 "26 Apr 2000" "nmblookup 2.0.7"
+.TH NMBLOOKUP 1 "17 Apr 2001" "nmblookup 2.0.8"
 .PP 
 .SH "NAME" 
 nmblookup \- NetBIOS over TCP/IP client used to lookup NetBIOS names
index 45ef0847685d7f2aea89bc691f0f187007f65ea9..57d4325a92385b0b232dee6ee29e88175d23e291 100644 (file)
@@ -1,4 +1,4 @@
-.TH SAMBA 7 "26 Apr 2000" "samba 2.0.7"
+.TH SAMBA 7 "17 Apr 2001" "samba 2.0.8"
 .PP 
 .SH "NAME" 
 Samba \- A Windows SMB/CIFS fileserver for UNIX
index 84439f0b12c5c54fdec98024918d9e42c98da14a..343cb82245f5810f419e58ef0dc0af6e1dc68d68 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMB.CONF 5 "26 Apr 2000" "smb.conf 2.0.7"
+.TH SMB.CONF 5 "17 Apr 2001" "smb.conf 2.0.8"
 .PP 
 .SH "NAME" 
 smb\&.conf \- The configuration file for the Samba suite
index 1d297e0018b99a40bc4b4640625fa4e1295875c3..e5fa8775e8760de68d5c6714382ac07cb9622add 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBCLIENT 1 "26 Apr 2000" "smbclient 2.0.7"
+.TH SMBCLIENT 1 "17 Apr 2001" "smbclient 2.0.8"
 .PP 
 .SH "NAME" 
 smbclient \- ftp-like client to access SMB/CIFS resources on servers
index 1bbc5f8564f461781ad319a87e16c576fc0f920f..dd00a57589b92add77bcf094886df0aa73d5b4d6 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBD 8 "26 Apr 2000" "smbd 2.0.7"
+.TH SMBD 8 "17 Apr 2001" "smbd 2.0.8"
 .PP 
 .SH "NAME" 
 smbd \- server to provide SMB/CIFS services to clients
index 3f9dc70d7eb248c0a469a1c1a4ef2a9deb56f507..7f76126993ec446bf6bcaca052e513e56f032089 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBMNT 8 "26 Apr 2000" "smbmnt 2.0.7"
+.TH SMBMNT 8 "17 Apr 2001" "smbmnt 2.0.8"
 .PP 
 .SH "NAME" 
 smbmnt \- helper utility for mounting SMB filesystems
index 13b7fdb7c0afaa9e29f1115f0a2e5aad7885de35..6f7e88ef67fa245ec74f11662f325674293350ef 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBMOUNT 8 "26 Apr 2000" "smbmount 2.0.7"
+.TH SMBMOUNT 8 "17 Apr 2001" "smbmount 2.0.8"
 .PP 
 .SH "NAME" 
 smbmount \- mount an SMB filesystem
index 0fc50b22c64cb0368844bb86072798625405d6b0..684b597519ec95814a269438561d4ca860c1baf3 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBPASSWD 5 "26 Apr 2000" "smbpasswd 2.0.7"
+.TH SMBPASSWD 5 "17 Apr 2001" "smbpasswd 2.0.8"
 .PP 
 .SH "NAME" 
 smbpasswd \- The Samba encrypted password file
index d5a00bb4842d1200ea9a959ebecdb6031b95e18b..db22d547dd43420c7e3deff36a8adde6d1bdcc18 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBPASSWD 8 "26 Apr 2000" "smbpasswd 2.0.7"
+.TH SMBPASSWD 8 "17 Apr 2001" "smbpasswd 2.0.8"
 .PP 
 .SH "NAME" 
 smbpasswd \- change a users SMB password
index 9cfc2a2c467f0df901c49995155c42bc8c41be50..ba85a1ed206e10ab721a292ffd4606d62ab82aea 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBRUN 1 "26 Apr 2000" "smbrun 2.0.7"
+.TH SMBRUN 1 "17 Apr 2001" "smbrun 2.0.8"
 .PP 
 .SH "NAME" 
 smbrun \- interface program between smbd and external programs
index 44f6b063e396a2004e3fc12e7dfaecb91206d20a..2acedfb0eaf465f6193c39ded2c85ecc0b8e8fe8 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBSH 1 "26 Apr 2000" "smbsh 2.0.7"
+.TH SMBSH 1 "17 Apr 2001" "smbsh 2.0.8"
 .PP 
 .SH "NAME" 
 smbsh \- Allows access to Windows NT filesystem using UNIX commands
index 053f11b5a089394c04dca9a93cee79580e74c726..f329eacba2195e306d0f14785d23136dc2ff61c0 100644 (file)
@@ -1,7 +1,8 @@
-.TH "smbspool " "1" "11 October 1999" "Samba" "SAMBA" 
+.TH SMBSPOOL 8 "17 Apr 2001" "smbspool 2.0.8"
+.PP 
 .PP 
 .SH "NAME" 
-smbspool \- send print file to an SMB printer
+smbspool \- mount an SMB filesystem
 .PP 
 .SH "SYNOPSIS" 
 \fBsmbspool\fP job user title copies options [filename]
@@ -11,7 +12,7 @@ smbspool \- send print file to an SMB printer
 This program is part of the Samba suite\&.
 .PP 
 smbspool is a very small print spooling program that sends a print
-file to an SMB printer\&. The command-line arguments are position-dependent for
+file to a SMB printer\&. The command-line arguments are position-dependent for
 compatibility with the Common UNIX Printing System, but you can use
 smbspool with any printing system or from a program or script\&.
 .PP 
@@ -65,7 +66,7 @@ standard input\&.
 .PP 
 .SH "VERSION" 
 .PP 
-This man page is correct for version 2\&.0 of the Samba suite\&.
+This man page is correct for version 2\e&\&.0 of the Samba suite\e&\&.
 .PP 
 .SH "SEE ALSO" 
 \fBsmbd (8)\fP
index 8f723a6bb93dd2170e1e4ef8eef6a89b7b4f5043..026b6660a46049a487e9ad87d825d9504c7579ab 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBSTATUS 1 "26 Apr 2000" "smbstatus 2.0.7"
+.TH SMBSTATUS 1 "17 Apr 2001" "smbstatus 2.0.8"
 .PP 
 .SH "NAME" 
 smbstatus \- report on current Samba connections
index 8a190ba2d99da8e779bc93c1f582dd85f8ee33af..600d787609b1e6a59e314939aa2753d9f755b529 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBTAR 1 "26 Apr 2000" "smbtar 2.0.7"
+.TH SMBTAR 1 "17 Apr 2001" "smbtar 2.0.8"
 .PP 
 .SH "NAME" 
 smbtar \- shell script for backing up SMB/CIFS shares directly to UNIX tape drives
index f61560b720749a441452a7129717f14f672cf558..ae4991f7224f3d3c9f7c5baa7b970660c98b7d7f 100644 (file)
@@ -1,4 +1,4 @@
-.TH SMBUMOUNT 8 "26 Apr 2000" "smbumount 2.0.7"
+.TH SMBUMOUNT 8 "17 Apr 2001" "smbumount 2.0.8"
 .SH NAME
 smbumount \- umount for normal users
 .SH SYNOPSIS
index e7e5f2667159fa0c56cd7f318671ba42678bb7b9..e54ad49efd9673e0796f93fb05912996ddf2fa82 100644 (file)
@@ -1,4 +1,4 @@
-.TH SWAT 8 "26 Apr 2000" "swat 2.0.7"
+.TH SWAT 8 "17 Apr 2001" "swat 2.0.8"
 .PP 
 .SH "NAME" 
 swat \- Samba Web Administration Tool
index dbc9c24bd59e3b2b52c61f32243a279b0da8072b..c95d6f307ea23c7b3edaec563c6f26fd03764f7f 100644 (file)
@@ -1,4 +1,4 @@
-.TH TESTPARM 1 "26 Apr 2000" "testparm 2.0.7"
+.TH TESTPARM 1 "17 Apr 2001" "testparm 2.0.8"
 .PP 
 .SH "NAME" 
 testparm \- check an smb\&.conf configuration file for internal correctness
index ff2c8e919fc1874e9b8b8d437ca0afe29d2f6e4d..82c6e229719f417c0043008404fafbeee7685eda 100644 (file)
@@ -1,4 +1,4 @@
-.TH TESTPRNS 1 "26 Apr 2000" "testprns 2.0.7"
+.TH TESTPRNS 1 "17 Apr 2001" "testprns 2.0.8"
 .PP 
 .SH "NAME" 
 testprns \- check printer name for validity with smbd 
index 5496328c616f5e329ff392592323f69baba00f40..88bdc4c057c7a45f92df123762a9cf8c315224e9 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Application_Serving.txt for Samba release 2.0.7 26 Apr 2000
+!== Application_Serving.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributed:   January 7, 1997
 Updated:       March 24, 1998
index 32d6683cdf2aac5f7c4097dd81999f6c227c8fd3..22a396c8f3b861544949001732bd0da952cb4492 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== BROWSING-Config.txt for Samba release 2.0.7 26 Apr 2000
+!== BROWSING-Config.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Date:          July 5, 1998
 Contributor:   John H Terpstra <jht@samba.org>
index 4ab9a80570f28792767da0bff44bec19e9feca2d..f2c492cb4f09f89e294f473f15a8cdef44c984f8 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== BROWSING.txt for Samba release 2.0.7 26 Apr 2000
+!== BROWSING.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Author/s:      Many (Thanks to Luke, Jeremy, Andrew, etc.)
 Updated:       July 5, 1998
index 799df46d65a4bd5ee68149f80b7e8816b42dc347..e0255a912441788d47a35e0c67913563112d9081 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== BUGS.txt for Samba release 2.0.7 26 Apr 2000
+!== BUGS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Samba Team
 Updated:       June 27, 1997
index efb365f9bf94086d93e112c01cd098cbece81bdd..b379a72f22ea9dcfb8758cfe540f9f7c7a4c9fa6 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== CRLF-LF-Conversions.txt for Samba release 2.0.7 26 Apr 2000
+!== CRLF-LF-Conversions.txt for Samba release 2.0.8 17 Apr 2001
 !==
 We get many requests for CRLF/LF format conversion handling by samba.
 The problem is that there is no clean way to determine which files
index 0bb22deb73ffd8a773c752940407f97b91a2ffe0..275afb0dae90558c0de4751bb868cb69af8c81e2 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== CVS_ACCESS.txt for Samba release 2.0.7 26 Apr 2000
+!== CVS_ACCESS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:    Modified from the Web pages by Jeremy Allison.
 Date:           23 Dec 1997
index 2485161b02dde49ac0878fd8cedf2d0b964f7e2f..353894f307f0aa90c9407ef301ea36423ef2d704 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DHCP-Server-Configuration.txt for Samba release 2.0.7 26 Apr 2000
+!== DHCP-Server-Configuration.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Subject:       DHCP Server Configuration for SMB Clients
 Date:          March 1, 1998
index e1916167c2d2d73b5eec1362cbb2f2af1e2a9c8c..96c979f447b8b6c79b0052267c1365ec7818ff0d 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DIAGNOSIS.txt for Samba release 2.0.7 26 Apr 2000
+!== DIAGNOSIS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Andrew Tridgell
 Updated:       November 1, 1999
index 28ef4ae0b0c952d8dcfd098a3647ed8be4f66bd8..716a6f1476e7b919ad1c4cb4526d67f49f449584 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DNIX.txt for Samba release 2.0.7 26 Apr 2000
+!== DNIX.txt for Samba release 2.0.8 17 Apr 2001
 !==
 DNIX has a problem with seteuid() and setegid(). These routines are
 needed for Samba to work correctly, but they were left out of the DNIX
index 7275800a9651b3bd631779dee342369041637a25..99126602d9af09361e1ed3def46a3a18d25bb975 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DOMAIN.txt for Samba release 2.0.7 26 Apr 2000
+!== DOMAIN.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Samba Team
 Updated:       December 4, 1998 (John H Terpstra)
index 24a002fac674b34101adf9525dd67a55b6fc86a7..68f5630a72dd800d30cf4a3bcfe0369f7247151b 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DOMAIN_CONTROL.txt for Samba release 2.0.7 26 Apr 2000
+!== DOMAIN_CONTROL.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Initial Release:       August 22, 1996
 Contributor:           John H Terpstra <samba@samba.org>
index 719dcf1ca248193ea063e57779298c222a692125..f17c6bde297b2982622b878561e5ba9fdfe5fe3f 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== DOMAIN_MEMBER.txt for Samba release 2.0.7 26 Apr 2000
+!== DOMAIN_MEMBER.txt for Samba release 2.0.8 17 Apr 2001
 !==
 
 TITLE INFORMATION: Joining an NT Domain with Samba 2.0 
index e0fc3d573dc785ea4bc3a4fae68b72f00d4972e3..1599d4e7f2d44132eaa6ca05458d94da5e23fe52 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== ENCRYPTION.txt for Samba release 2.0.7 26 Apr 2000
+!== ENCRYPTION.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Jeremy Allison <samba@samba.org>
 Updated:       April 19, 1999
index 95be95f0ae7b017cd9209295b76792890f2a4223..75739c7744064083d8d36ad05a2645d8d30a7610 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Faxing.txt for Samba release 2.0.7 26 Apr 2000
+!== Faxing.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:    Gerhard Zuber <zuber@berlin.snafu.de>
 Date:                  August 5th 1997.
index f00847f304b632ddc61f0495c3b20234911566d5..a52bbdf701e3e5bcac68f8cee020f7519cf41f0e 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== File-Cacheing.txt for Samba release 2.0.7 26 Apr 2000
+!== File-Cacheing.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Some people report problems with "cacheing" of data. Generally the bug report 
 goes like this:
index 417790a36a48a9fd4170ff16effe5d03c86f24cf..5fe92c2b91c3fa10e1bd802a1da91d3190b5ce10 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== GOTCHAS.txt for Samba release 2.0.7 26 Apr 2000
+!== GOTCHAS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 This file lists Gotchas to watch out for:
 =========================================================================
index b7c65975dfbda14bc3f1881f014a85aca5b8fecc..37faf2b451d3741d03623b7c8a6d7efd1ea517ea 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== HINTS.txt for Samba release 2.0.7 26 Apr 2000
+!== HINTS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Many
 Updated:       Not for a long time!
index 7140c5915d4b2710e6ca957b14136feb0535ecf7..1b7de1cb41a6ebe3394651d9c95f11a07d821dd7 100755 (executable)
@@ -1,5 +1,5 @@
 !==
-!== MIRRORS.txt for Samba release 2.0.7 26 Apr 2000
+!== MIRRORS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 
 For a list of web and ftp mirrors please see 
index adccecfd801c0957f4858ed304c594aedc21034e..1e4f481a8c79a63a497a5869b48709589cd6ffc0 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Macintosh_Clients.txt for Samba release 2.0.7 26 Apr 2000
+!== Macintosh_Clients.txt for Samba release 2.0.8 17 Apr 2001
 !==
 > Are there any Macintosh clients for Samba?
 
index 590e5fc5725c107ffb18aa90846d8351ec5be1ec..746be8220d6272877e180143e9cd3d7dc6a787fa 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== NT-Guest-Access.txt for Samba release 2.0.7 26 Apr 2000
+!== NT-Guest-Access.txt for Samba release 2.0.8 17 Apr 2001
 !==
 > Hi folks ... I don't know if you have seen this, have corrected this yet
 > or it is my configuration.
index ad81042f066744fd167462d0387e8a3c57fe7226..79f37f65e1fc48d14d25ff5131d1c2204d92c46f 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== NTDOMAIN.txt for Samba release 2.0.7 26 Apr 2000
+!== NTDOMAIN.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Luke Kenneth Casson Leighton (samba@samba.org)
                Copyright (C) 1997 Luke Kenneth Casson Leighton
index 64a0458c4eaa089c351fbbcde8ce80873a11bafb..bdb02f10d34b9ec9399897a9cafa93d74254f3a2 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== NT_Security.txt for Samba release 2.0.7 26 Apr 2000
+!== NT_Security.txt for Samba release 2.0.8 17 Apr 2001
 !==
 
 TITLE INFORMATION: Viewing and changing UNIX permissions using the NT security dialogs in Samba 2.0.4 
index 630acbd903d7ddf234bf5c9b6cd89b66dd34799d..3168437cd13ecaf7acdceac6c79a7b83eace72c1 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== NetBIOS.txt for Samba release 2.0.7 26 Apr 2000
+!== NetBIOS.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:    lkcl - samba@arvidsjaur.anu.edu.au
                 Copyright 1997  Luke Kenneth Casson Leighton 
index 06942cebfaf5f85adb1c986558584dec44514d36..1ba39decdd1bfc0e4d51edae0585e840af514970 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== OS2-Client-HOWTO.txt for Samba release 2.0.7 26 Apr 2000
+!== OS2-Client-HOWTO.txt for Samba release 2.0.8 17 Apr 2001
 !==
 
 
index 5f0b10eda94cefba4f3008278007743ae6fe970c..cd5da5938ffdfe4d248f98b5b838331491470042 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== PRINTER_DRIVER.txt for Samba release 2.0.7 26 Apr 2000
+!== PRINTER_DRIVER.txt for Samba release 2.0.8 17 Apr 2001
 !==
 ==========================================================================
        Supporting the famous PRINTER$ share
index ed02f09dbee2580144df46285b793a6f79740940..dddfafd63d10da6311d5e03c77095b0ab4ee18d1 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== PROFILES.txt for Samba release 2.0.7 26 Apr 2000
+!== PROFILES.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributors:  Bruce Cook <BC3-AU@bigfoot.com>
                Copyright (C) 1998 Bruce Cook
index 8aee64852e38cea32f71fe340374ba160f8cdc2e..3f7c1d53b438903d399a31ba64857eec1600219e 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Passwords.txt for Samba release 2.0.7 26 Apr 2000
+!== Passwords.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Unknown
 Date:          Updated April 19th 1999.
index c368b37cae86ecf165011dc7144a870b5a39a68c..ec9de020fde8054db6867725fec2001f6009a6f3 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Printing.txt for Samba release 2.0.7 26 Apr 2000
+!== Printing.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Unknown <samba@samba.org>
 Date:          Unknown
index 8ef0353edf56ce4b3675b4e4bb8da98a6047502a..8338c249d3253b939b3808f2b0ee2ec2b0e61830 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Recent-FAQs.txt for Samba release 2.0.7 26 Apr 2000
+!== Recent-FAQs.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Samba-bugs@samba.org
 Date:          July 5, 1998
index 2902ae66e1e12c0ad427b77e7518d74d379c45fd..7f32be600105f6cd7747d0f6c617e1fd24635bfd 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== RoutedNetworks.txt for Samba release 2.0.7 26 Apr 2000
+!== RoutedNetworks.txt for Samba release 2.0.8 17 Apr 2001
 !==
 #NOFNR Flag in LMHosts to Communicate Across Routers\r
 \r
index f6959d30a82eccd3574f1bf2b45c7ef5b8eae175..b463f4fedc714c475078b97d2509ceeaaa6316f4 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== SCO.txt for Samba release 2.0.7 26 Apr 2000
+!== SCO.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Geza Makay <makayg@math.u-szeged.hu>
 Date:          Unknown
index 29e2cb6a0b61cb073508d0af6d76a39f076615c2..002dd8c2a821ff9568aee700755d1985a75a77a5 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== SSLeay.txt for Samba release 2.0.7 26 Apr 2000
+!== SSLeay.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor: Christian Starkjohann <cs@obdev.at>
 Date:        May 29, 1998
index 3d4941809f60cecd296bd398b134fabd7bb85b4f..287d44046cf5016f0563c7999988870f27a9a2e8 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Speed.txt for Samba release 2.0.7 26 Apr 2000
+!== Speed.txt for Samba release 2.0.8 17 Apr 2001
 !==
 
 Subject:       Samba performance issues
index 6dc4db1c85c601d6c78b1b57a7b31629963c3b90..f39433377f995a60981016b772d573e027c1fa02 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Speed2.txt for Samba release 2.0.7 26 Apr 2000
+!== Speed2.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Paul Cochrane <paulc@dth.scot.nhs.uk>
 Organization:  Dundee Limb Fitting Centre
index 03340d287605a8dbbef9be7b5232ef0597a00027..0d7a0d687b3058b6af789d9bc11382f0059c4d0a 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Support.txt for Samba release 2.0.7 26 Apr 2000
+!== Support.txt for Samba release 2.0.8 17 Apr 2001
 !==
 The Samba Consultants List
 ==========================
index 9c53412e606b43165a55f15bcbabe339f5751002..29b160dc13958cb153a4f8cadf2ff63f661cd059 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Tracing.txt for Samba release 2.0.7 26 Apr 2000
+!== Tracing.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Andrew Tridgell <samba@samba.org>
 Date:          Old
index 26825afbbf7218c55565e25b07201e8d486f6a53..0ef69c2340069d4dfa54fca220459f4549e93f65 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== UNIX-SMB.txt for Samba release 2.0.7 26 Apr 2000
+!== UNIX-SMB.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Andrew Tridgell <samba@samba.org>
 Date:          April 1995
index 229fc1e0f09b52372288a65b0ebb93ad72b68574..8fc59250f1db05f2e713aae0b60e0696067121b3 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== UNIX_INSTALL.txt for Samba release 2.0.7 26 Apr 2000
+!== UNIX_INSTALL.txt for Samba release 2.0.8 17 Apr 2001
 !==
 HOW TO INSTALL AND TEST SAMBA
 =============================
index 6ad13c2ec3f0ae3f4cb0267b23e65525f3c894ad..0f538a0cbd2011a992a6529a2c4a18a980131a17 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== UNIX_SECURITY.txt for Samba release 2.0.7 26 Apr 2000
+!== UNIX_SECURITY.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   John H Terpstra <jht@samba.org>
 Date:          July 5, 1998
index 597dd2bc5c406f4b9953373b88cee96a83c7581c..c30d590ac4072adf308d79e879f13b8f4578b9fd 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== Win95.txt for Samba release 2.0.7 26 Apr 2000
+!== Win95.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Copyright (C) 1997 - Samba-Team
 Contributed Date:      August 20, 1997
index 4f21c64630b8e871118f232a8ad59887b9c1ff85..991fae8e4b2bddf6914be59531add11e82c712a2 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== WinNT.txt for Samba release 2.0.7 26 Apr 2000
+!== WinNT.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributors:  Various
                Password Section - Copyright (C) 1997 - John H Terpstra
index 01b101c01f8ec9ab3e88472bf9c9633589095f55..f4f59822010c8788314e0cbbf65a1c35e2e651ba 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== cifsntdomain.txt for Samba release 2.0.7 26 Apr 2000
+!== cifsntdomain.txt for Samba release 2.0.8 17 Apr 2001
 !==
 NT Domain Authentication
 ------------------------
index 0a434b60284250c6f7a91b00339ccd647dda7fb6..bc5e960d0870a25be75599faca270542e14e3fb4 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== security_level.txt for Samba release 2.0.7 26 Apr 2000
+!== security_level.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Contributor:   Andrew Tridgell
 Updated:       June 27, 1997
index 4d3df1bec1322d8b8def7ad27fdddc77feadae17..235ae24a1493a70b243245272a6b2a48c3a288c8 100644 (file)
@@ -1,5 +1,5 @@
 !==
-!== smbmount.txt for Samba release 2.0.7 26 Apr 2000
+!== smbmount.txt for Samba release 2.0.8 17 Apr 2001
 !==
 Date:           October 15, 1999
 Contributor:    Urban Widmark <urban@svenskatest.se>
index 53388601a52293f14b3a70e0960ff6cfa934b1a6..eed28726fe584a2c547a2d1972b3f284325b18f9 100644 (file)
@@ -3,7 +3,9 @@ mailto(samba@samba.org)
 manpage(smbspool htmlcommand((1)))(1)(11 October 1999)(Samba)(SAMBA)
 
 label(NAME)
-manpagename(smbspool)(send print file to an SMB printer)
+
+label(NAME)
+manpagename(smbspool)(mount an SMB filesystem)
 
 label(SYNOPSIS)
 manpagesynopsis()
@@ -15,7 +17,7 @@ manpagedescription()
 This program is part of the Samba suite.
 
 smbspool is a very small print spooling program that sends a print
-file to an SMB printer. The command-line arguments are position-dependent for
+file to a SMB printer. The command-line arguments are position-dependent for
 compatibility with the Common UNIX Printing System, but you can use
 smbspool with any printing system or from a program or script.
 
@@ -68,7 +70,7 @@ standard input.
 label(VERSION)
 manpagesection(VERSION)
 
-This man page is correct for version 2.0 of the Samba suite.
+This man page is correct for version 2\&.0 of the Samba suite\&.
 
 label(SEEALSO)
 manpagesection(SEE ALSO)
index b5b9832add336eb1e095d9577bac33fb004caece..da331572452bdc43d91b50134d37b86325abf982 100644 (file)
@@ -61,10 +61,6 @@ server. Please use it with care. If you do not need it then do NOT
 install.
 
 %changelog
-* Mon May 29 2000 John H Terpstra <jht@turbolinux.com>
-- moved linkage of libnss_wins.so.2 to %post
-- added removal step to %postun
-
 * Fri Apr 14 2000 John H Terpstra <jht@turbolinux.com>
 - Added unicode pages
 
@@ -222,6 +218,7 @@ done
 
 # Install the nsswitch library extension file
 install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib
+ln -s $RPM_BUILD_ROOT/lib/libnss_wins.so $RPM_BUILD_ROOT/lib/libnss_wins.so.2
 
 # Install SWAT helper files
 for i in swat/help/*.html
@@ -321,8 +318,6 @@ if [ -f /etc/xinetd.conf ]; then
        mv /etc/xinetd.conf /etc/xinetd.conf.presamba
        /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf
 fi
-# Make link for wins resolver
-ln -s /lib/libnss_wins.so /lib/libnss_wins.so.2
 
 %preun
 if [ $1 = 0 ] ; then
@@ -370,7 +365,6 @@ fi
 if [ -f /sbin/mount.smb ]; then
        rm -f /sbin/mount.smb
 fi
-rm -f /lib/libnss_wins.so.2
 
 %triggerpostun -- samba < samba-2.0.0
 if [ $0 != 0 ]; then
index 4d472dc070da4555349431a7e1408a7058aea25a..00843777ca589c743a3f750eecf64466c53d038e 100755 (executable)
@@ -85,7 +85,7 @@ closedir(DIR);
 # install the swat files
 chdir "$SRCDIR/source";
 system("chmod +x ./script/installswat.sh");
-system("./script/installswat.sh  ../packaging/SGI/swat ./ ../packaging/SGI/swat/using_samba");
+system("./script/installswat.sh  ../packaging/SGI/swat ./");
 system("cp -f ../swat/README ../packaging/SGI/swat");
 chdir $curdir;
 
@@ -100,7 +100,6 @@ chdir $curdir;
 # the files installed in docs include all the original files in docs plus all
 # the "*.doc" files from the source tree
 @docs = sort byfilename grep (!/^docs\/$/ & (/^source\/.*\.doc$/ | /^docs\//),@allfiles);
-@docs = grep(!/htmldocs\/using_samba/, @docs);
 
 @swatfiles = sort grep(/^packaging\/SGI\/swat/, @allfiles);
 @catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles);
@@ -122,7 +121,6 @@ if ($PKG eq "samba_irix") {
   print IDB "f 0644 root sys usr/relnotes/samba_irix/TC build/TC $PKG.man.relnotes\n";
   print IDB "f 0644 root sys usr/relnotes/samba_irix/ch1.z build/ch1.z $PKG.man.relnotes\n";
   print IDB "f 0644 root sys usr/relnotes/samba_irix/ch2.z build/ch2.z $PKG.man.relnotes\n";
-  print IDB "f 0644 root sys usr/relnotes/samba_irix/ch3.z build/ch3.z $PKG.man.relnotes\n";
 }
 else {
   @copyfile = grep (/^COPY/,@allfiles);
@@ -142,22 +140,22 @@ while(@bins) {
 
   if (index($nextfile,'$')) {
     if ($filename eq "smbpasswd") {
-      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n";
+      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip\n";
     }
     elsif ($filename eq "findsmb") {
       print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n";
     }
     elsif ($filename eq "swat") {
-      print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n";
+      print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n";
     }
     elsif ($filename eq "sambalp") {
-      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base \n";
+      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base nostrip\n";
     }
     elsif ($filename eq "smbprint") {
       print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n";
     }
     else {
-      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n";
+      print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip\n";
     }
   }
 }
@@ -181,7 +179,7 @@ print IDB "d 0755 root sys usr/samba/lib $SRCPFX/packaging/SGI $PKG.sw.base\n";
 print IDB "d 0755 root sys usr/samba/lib/codepages $SRCPFX/packaging/SGI $PKG.sw.base\n";
 while (@codepage) {
   $nextpage = shift @codepage;
-  print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.sw.base nostrip \n";
+  print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.sw.base\n";
 }
 print IDB "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.sw.base config(suggest)\n";
 
index df8a7af168e1ea9d29cfe7bc27715de89d6cb880..9e42390ebeea028ec5f101d0327014f5bdf301c5 100644 (file)
 #undef HAVE_EXPLICIT_LARGEFILE_SUPPORT
 #undef USE_BOTH_CRYPT_CALLS
 #undef HAVE_BROKEN_FCNTL64_LOCKS
+#undef HAVE_SECURE_MKSTEMP
 #undef HAVE_FNMATCH
 #undef USE_SETEUID
 #undef USE_SETRESUID
index a002b11fcda534d1bb9dd1fef6508d7df8b5aba1..7a78be06231a381834cd0134376fbdacb3279995 100644 (file)
@@ -842,18 +842,24 @@ view the file using the pager
 ****************************************************************************/
 static void cmd_more(void)
 {
-       fstring rname,lname,tmpname,pager_cmd;
+       fstring rname,lname,pager_cmd;
        char *pager;
+       int fd;
 
        fstrcpy(rname,cur_dir);
        fstrcat(rname,"\\");
-       slprintf(tmpname,
-                sizeof(fstring)-1,
-                "%s/smbmore.%d",tmpdir(),(int)getpid());
-       fstrcpy(lname,tmpname);
-       
+
+       slprintf(lname,sizeof(lname)-1, "%s/smbmore.XXXXXX",tmpdir());
+       fd = smb_mkstemp(lname);
+       if (fd == -1) {
+               DEBUG(0,("failed to create temporary file for more\n"));
+               return;
+       }
+       close(fd);
+
        if (!next_token(NULL,rname+strlen(rname),NULL,sizeof(rname)-strlen(rname))) {
                DEBUG(0,("more <filename>\n"));
+               unlink(lname);
                return;
        }
        dos_clean_name(rname);
@@ -863,9 +869,9 @@ static void cmd_more(void)
        pager=getenv("PAGER");
 
        slprintf(pager_cmd,sizeof(pager_cmd)-1,
-                "%s %s",(pager? pager:PAGER), tmpname);
+                "%s %s",(pager? pager:PAGER), lname);
        system(pager_cmd);
-       unlink(tmpname);
+       unlink(lname);
 }
 
 
@@ -1157,9 +1163,18 @@ static void cmd_mput(void)
                pstring cmd;
                pstring tmpname;
                FILE *f;
+               int fd;
+
+               slprintf(tmpname,sizeof(tmpname)-1, "%s/ls.smb.XXXXXX",
+                        tmpdir());
+               fd = smb_mkstemp(tmpname);
+
+               if (fd == -1) {
+                       DEBUG(0,("Failed to create temporary file %s\n", 
+                                tmpname));
+                       continue;
+               }
                
-               slprintf(tmpname,sizeof(pstring)-1,
-                        "%s/ls.smb.%d",tmpdir(),(int)getpid());
                if (recurse)
                        slprintf(cmd,sizeof(pstring)-1,
                                "find . -name \"%s\" -print > %s",p,tmpname);
@@ -1167,9 +1182,11 @@ static void cmd_mput(void)
                        slprintf(cmd,sizeof(pstring)-1,
                                "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname);
                system(cmd);
+               close(fd);
 
                f = sys_fopen(tmpname,"r");
                if (!f) continue;
+               unlink(tmpname);
                
                while (!feof(f)) {
                        pstring quest;
@@ -1215,7 +1232,6 @@ static void cmd_mput(void)
                        do_put(rname,lname);
                }
                fclose(f);
-               unlink(tmpname);
        }
 }
 
index decbf910606a0ddc051a3f1222b748db97970bbc..7b2c37db8af6d8f050e0459d2e07d47524c8bd25 100755 (executable)
@@ -8850,8 +8850,57 @@ EOF
 
 fi
 
+echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
+echo "configure:8855: checking for secure mkstemp" >&5
+if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  
+if test "$cross_compiling" = yes; then
+  samba_cv_HAVE_SECURE_MKSTEMP=cross
+else
+  cat > conftest.$ac_ext <<EOF
+#line 8864 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+main() { 
+  struct stat st;
+  char tpl[20]="/tmp/test.XXXXXX"; 
+  int fd = mkstemp(tpl); 
+  if (fd == -1) exit(1);
+  unlink(tpl);
+  if (fstat(fd, &st) != 0) exit(1);
+  if ((st.st_mode & 0777) != 0600) exit(1);
+  exit(0);
+}
+EOF
+if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+then
+  samba_cv_HAVE_SECURE_MKSTEMP=yes
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -fr conftest*
+  samba_cv_HAVE_SECURE_MKSTEMP=no
+fi
+rm -fr conftest*
+fi
+
+fi
+
+echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
+if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
+    cat >> confdefs.h <<\EOF
+#define HAVE_SECURE_MKSTEMP 1
+EOF
+
+fi
+
 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
-echo "configure:8855: checking for broken inet_ntoa" >&5
+echo "configure:8904: checking for broken inet_ntoa" >&5
 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8860,7 +8909,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_REPLACE_INET_NTOA=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 8864 "configure"
+#line 8913 "configure"
 #include "confdefs.h"
 
 #include <stdio.h>
@@ -8874,7 +8923,7 @@ if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); } 
 exit(1);}
 EOF
-if { (eval echo configure:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_REPLACE_INET_NTOA=yes
 else
@@ -8897,7 +8946,7 @@ EOF
 fi
 
 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
-echo "configure:8901: checking for sysconf(_SC_NGROUPS_MAX)" >&5
+echo "configure:8950: checking for sysconf(_SC_NGROUPS_MAX)" >&5
 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8906,12 +8955,12 @@ if test "$cross_compiling" = yes; then
   samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 8910 "configure"
+#line 8959 "configure"
 #include "confdefs.h"
 #include <unistd.h>
 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
 EOF
-if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
 else
@@ -8934,7 +8983,7 @@ EOF
 fi
 
 echo $ac_n "checking for root""... $ac_c" 1>&6
-echo "configure:8938: checking for root" >&5
+echo "configure:8987: checking for root" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8943,11 +8992,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_ROOT=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 8947 "configure"
+#line 8996 "configure"
 #include "confdefs.h"
 main() { exit(getuid() != 0); }
 EOF
-if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_ROOT=yes
 else
@@ -8975,7 +9024,7 @@ fi
 # look for a method of finding the list of network interfaces
 iface=no;
 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
-echo "configure:8979: checking for iface AIX" >&5
+echo "configure:9028: checking for iface AIX" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -8984,7 +9033,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_IFACE_AIX=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 8988 "configure"
+#line 9037 "configure"
 #include "confdefs.h"
 
 #define HAVE_IFACE_AIX 1
@@ -8992,7 +9041,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/interfaces.c"
 EOF
-if { (eval echo configure:8996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_IFACE_AIX=yes
 else
@@ -9016,7 +9065,7 @@ fi
 
 if test $iface = no; then
 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
-echo "configure:9020: checking for iface ifconf" >&5
+echo "configure:9069: checking for iface ifconf" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9025,7 +9074,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_IFACE_IFCONF=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9029 "configure"
+#line 9078 "configure"
 #include "confdefs.h"
 
 #define HAVE_IFACE_IFCONF 1
@@ -9033,7 +9082,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/interfaces.c"
 EOF
-if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_IFACE_IFCONF=yes
 else
@@ -9058,7 +9107,7 @@ fi
 
 if test $iface = no; then
 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
-echo "configure:9062: checking for iface ifreq" >&5
+echo "configure:9111: checking for iface ifreq" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9067,7 +9116,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_IFACE_IFREQ=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9071 "configure"
+#line 9120 "configure"
 #include "confdefs.h"
 
 #define HAVE_IFACE_IFREQ 1
@@ -9075,7 +9124,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/interfaces.c"
 EOF
-if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_IFACE_IFREQ=yes
 else
@@ -9104,7 +9153,7 @@ fi
 seteuid=no;
 if test $seteuid = no; then
 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
-echo "configure:9108: checking for setresuid" >&5
+echo "configure:9157: checking for setresuid" >&5
 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9113,7 +9162,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_USE_SETRESUID=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9117 "configure"
+#line 9166 "configure"
 #include "confdefs.h"
 
 #define AUTOCONF_TEST 1
@@ -9121,7 +9170,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/util_sec.c"
 EOF
-if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_USE_SETRESUID=yes
 else
@@ -9147,7 +9196,7 @@ fi
 
 if test $seteuid = no; then
 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
-echo "configure:9151: checking for setreuid" >&5
+echo "configure:9200: checking for setreuid" >&5
 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9156,7 +9205,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_USE_SETREUID=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9160 "configure"
+#line 9209 "configure"
 #include "confdefs.h"
 
 #define AUTOCONF_TEST 1
@@ -9164,7 +9213,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/util_sec.c"
 EOF
-if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_USE_SETREUID=yes
 else
@@ -9189,7 +9238,7 @@ fi
 
 if test $seteuid = no; then
 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
-echo "configure:9193: checking for seteuid" >&5
+echo "configure:9242: checking for seteuid" >&5
 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9198,7 +9247,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_USE_SETEUID=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9202 "configure"
+#line 9251 "configure"
 #include "confdefs.h"
 
 #define AUTOCONF_TEST 1
@@ -9206,7 +9255,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/util_sec.c"
 EOF
-if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_USE_SETEUID=yes
 else
@@ -9231,7 +9280,7 @@ fi
 
 if test $seteuid = no; then
 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
-echo "configure:9235: checking for setuidx" >&5
+echo "configure:9284: checking for setuidx" >&5
 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9240,7 +9289,7 @@ if test "$cross_compiling" = yes; then
   samba_cv_USE_SETUIDX=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9244 "configure"
+#line 9293 "configure"
 #include "confdefs.h"
 
 #define AUTOCONF_TEST 1
@@ -9248,7 +9297,7 @@ else
 #include "confdefs.h"
 #include "${srcdir-.}/lib/util_sec.c"
 EOF
-if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_USE_SETUIDX=yes
 else
@@ -9273,7 +9322,7 @@ fi
 
 
 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
-echo "configure:9277: checking for shared mmap" >&5
+echo "configure:9326: checking for shared mmap" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9282,11 +9331,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_SHARED_MMAP=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9286 "configure"
+#line 9335 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/shared_mmap.c"
 EOF
-if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_SHARED_MMAP=yes
 else
@@ -9313,7 +9362,7 @@ EOF
 fi
 
 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
-echo "configure:9317: checking for ftruncate needs root" >&5
+echo "configure:9366: checking for ftruncate needs root" >&5
 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9322,11 +9371,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_FTRUNCATE_NEEDS_ROOT=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9326 "configure"
+#line 9375 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/ftruncroot.c"
 EOF
-if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_FTRUNCATE_NEEDS_ROOT=yes
 else
@@ -9349,7 +9398,7 @@ EOF
 fi
 
 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
-echo "configure:9353: checking for fcntl locking" >&5
+echo "configure:9402: checking for fcntl locking" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9358,11 +9407,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_FCNTL_LOCK=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9362 "configure"
+#line 9411 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/fcntl_lock.c"
 EOF
-if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_FCNTL_LOCK=yes
 else
@@ -9385,7 +9434,7 @@ EOF
 fi
 
 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
-echo "configure:9389: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
+echo "configure:9438: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9394,11 +9443,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9398 "configure"
+#line 9447 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/fcntl_lock64.c"
 EOF
-if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
 else
@@ -9423,7 +9472,7 @@ else
 
 
   echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
-echo "configure:9427: checking for 64 bit fcntl locking" >&5
+echo "configure:9476: checking for 64 bit fcntl locking" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9432,7 +9481,7 @@ else
   samba_cv_HAVE_STRUCT_FLOCK64=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9436 "configure"
+#line 9485 "configure"
 #include "confdefs.h"
 
 #if defined(HAVE_UNISTD_H)
@@ -9456,7 +9505,7 @@ exit(1);
 #endif
 }
 EOF
-if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_STRUCT_FLOCK64=yes
 else
@@ -9481,7 +9530,7 @@ EOF
 fi
 
 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
-echo "configure:9485: checking for sysv ipc" >&5
+echo "configure:9534: checking for sysv ipc" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9490,11 +9539,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_SYSV_IPC=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9494 "configure"
+#line 9543 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/sysv_ipc.c"
 EOF
-if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_SYSV_IPC=yes
 else
@@ -9517,7 +9566,7 @@ EOF
 fi
 
 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
-echo "configure:9521: checking for IRIX sysv ipc semun problem using gcc" >&5
+echo "configure:9570: checking for IRIX sysv ipc semun problem using gcc" >&5
 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9526,11 +9575,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_NEED_SGI_SEMUN_HACK=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9530 "configure"
+#line 9579 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
 EOF
-if { (eval echo configure:9534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_NEED_SGI_SEMUN_HACK=yes
 else
@@ -9553,7 +9602,7 @@ EOF
 fi
 
 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
-echo "configure:9557: checking for a crypt that needs truncated salt" >&5
+echo "configure:9606: checking for a crypt that needs truncated salt" >&5
 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -9562,11 +9611,11 @@ if test "$cross_compiling" = yes; then
   samba_cv_HAVE_TRUNCATED_SALT=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 9566 "configure"
+#line 9615 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/crypttest.c"
 EOF
-if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   samba_cv_HAVE_TRUNCATED_SALT=no
 else
@@ -9589,13 +9638,13 @@ EOF
 fi
 
 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
-echo "configure:9593: checking for broken nisplus include files" >&5
+echo "configure:9642: checking for broken nisplus include files" >&5
 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
 cat > conftest.$ac_ext <<EOF
-#line 9599 "configure"
+#line 9648 "configure"
 #include "confdefs.h"
 #include <sys/acl.h>
 #if defined(HAVE_RPCSVC_NIS_H)
@@ -9605,7 +9654,7 @@ int main() {
 return 0;
 ; return 0; }
 EOF
-if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
 else
@@ -9629,7 +9678,7 @@ fi
 #################################################
 # check for smbwrapper support
 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
-echo "configure:9633: checking whether to use smbwrapper" >&5
+echo "configure:9682: checking whether to use smbwrapper" >&5
 # Check whether --with-smbwrapper or --without-smbwrapper was given.
 if test "${with_smbwrapper+set}" = set; then
   withval="$with_smbwrapper"
@@ -9673,7 +9722,7 @@ fi
 #################################################
 # check for the AFS filesystem
 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
-echo "configure:9677: checking whether to use AFS" >&5
+echo "configure:9726: checking whether to use AFS" >&5
 # Check whether --with-afs or --without-afs was given.
 if test "${with_afs+set}" = set; then
   withval="$with_afs"
@@ -9699,7 +9748,7 @@ fi
 #################################################
 # check for the DFS auth system
 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
-echo "configure:9703: checking whether to use DFS auth" >&5
+echo "configure:9752: checking whether to use DFS auth" >&5
 # Check whether --with-dfs or --without-dfs was given.
 if test "${with_dfs+set}" = set; then
   withval="$with_dfs"
@@ -9724,7 +9773,7 @@ fi
 #################################################
 # check for Kerberos IV auth system
 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
-echo "configure:9728: checking whether to use Kerberos IV" >&5
+echo "configure:9777: checking whether to use Kerberos IV" >&5
 # Check whether --with-krb4 or --without-krb4 was given.
 if test "${with_krb4+set}" = set; then
   withval="$with_krb4"
@@ -9734,7 +9783,7 @@ if test "${with_krb4+set}" = set; then
 EOF
 
     echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
-echo "configure:9738: checking for dn_expand in -lresolv" >&5
+echo "configure:9787: checking for dn_expand in -lresolv" >&5
 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -9742,7 +9791,7 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-lresolv  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 9746 "configure"
+#line 9795 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -9753,7 +9802,7 @@ int main() {
 dn_expand()
 ; return 0; }
 EOF
-if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -9792,7 +9841,7 @@ fi
 #################################################
 # check for Kerberos 5 auth system
 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
-echo "configure:9796: checking whether to use Kerberos 5" >&5
+echo "configure:9845: checking whether to use Kerberos 5" >&5
 # Check whether --with-krb5 or --without-krb5 was given.
 if test "${with_krb5+set}" = set; then
   withval="$with_krb5"
@@ -9813,7 +9862,7 @@ fi
 #################################################
 # check for automount support
 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
-echo "configure:9817: checking whether to use AUTOMOUNT" >&5
+echo "configure:9866: checking whether to use AUTOMOUNT" >&5
 # Check whether --with-automount or --without-automount was given.
 if test "${with_automount+set}" = set; then
   withval="$with_automount"
@@ -9838,7 +9887,7 @@ fi
 #################################################
 # check for smbmount support
 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
-echo "configure:9842: checking whether to use SMBMOUNT" >&5
+echo "configure:9891: checking whether to use SMBMOUNT" >&5
 # Check whether --with-smbmount or --without-smbmount was given.
 if test "${with_smbmount+set}" = set; then
   withval="$with_smbmount"
@@ -9867,7 +9916,7 @@ fi
 #################################################
 # check for a PAM password database
 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
-echo "configure:9871: checking whether to use PAM password database" >&5
+echo "configure:9920: checking whether to use PAM password database" >&5
 # Check whether --with-pam or --without-pam was given.
 if test "${with_pam+set}" = set; then
   withval="$with_pam"
@@ -9894,7 +9943,7 @@ fi
 #################################################
 # check for a LDAP password database
 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
-echo "configure:9898: checking whether to use LDAP password database" >&5
+echo "configure:9947: checking whether to use LDAP password database" >&5
 # Check whether --with-ldap or --without-ldap was given.
 if test "${with_ldap+set}" = set; then
   withval="$with_ldap"
@@ -9920,7 +9969,7 @@ fi
 #################################################
 # check for a NISPLUS password database
 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
-echo "configure:9924: checking whether to use NISPLUS password database" >&5
+echo "configure:9973: checking whether to use NISPLUS password database" >&5
 # Check whether --with-nisplus or --without-nisplus was given.
 if test "${with_nisplus+set}" = set; then
   withval="$with_nisplus"
@@ -9945,7 +9994,7 @@ fi
 #################################################
 # check for a NISPLUS_HOME support 
 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
-echo "configure:9949: checking whether to use NISPLUS_HOME" >&5
+echo "configure:9998: checking whether to use NISPLUS_HOME" >&5
 # Check whether --with-nisplus-home or --without-nisplus-home was given.
 if test "${with_nisplus_home+set}" = set; then
   withval="$with_nisplus_home"
@@ -9970,7 +10019,7 @@ fi
 #################################################
 # check for the secure socket layer
 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
-echo "configure:9974: checking whether to use SSL" >&5
+echo "configure:10023: checking whether to use SSL" >&5
 # Check whether --with-ssl or --without-ssl was given.
 if test "${with_ssl+set}" = set; then
   withval="$with_ssl"
@@ -10029,7 +10078,7 @@ fi
 #################################################
 # check for syslog logging
 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
-echo "configure:10033: checking whether to use syslog logging" >&5
+echo "configure:10082: checking whether to use syslog logging" >&5
 # Check whether --with-syslog or --without-syslog was given.
 if test "${with_syslog+set}" = set; then
   withval="$with_syslog"
@@ -10054,7 +10103,7 @@ fi
 #################################################
 # check for a shared memory profiling support
 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
-echo "configure:10058: checking whether to use profiling" >&5
+echo "configure:10107: checking whether to use profiling" >&5
 # Check whether --with-profile or --without-profile was given.
 if test "${with_profile+set}" = set; then
   withval="$with_profile"
@@ -10080,7 +10129,7 @@ fi
 #################################################
 # check for experimental netatalk resource fork support
 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
-echo "configure:10084: checking whether to support netatalk" >&5
+echo "configure:10133: checking whether to support netatalk" >&5
 # Check whether --with-netatalk or --without-netatalk was given.
 if test "${with_netatalk+set}" = set; then
   withval="$with_netatalk"
@@ -10107,7 +10156,7 @@ fi
 QUOTAOBJS=noquotas.o
 
 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
-echo "configure:10111: checking whether to support disk-quotas" >&5
+echo "configure:10160: checking whether to support disk-quotas" >&5
 # Check whether --with-quotas or --without-quotas was given.
 if test "${with_quotas+set}" = set; then
   withval="$with_quotas"
@@ -10131,7 +10180,7 @@ fi
 # check for experimental utmp accounting
 
 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
-echo "configure:10135: checking whether to support utmp accounting" >&5
+echo "configure:10184: checking whether to support utmp accounting" >&5
 # Check whether --with-utmp or --without-utmp was given.
 if test "${with_utmp+set}" = set; then
   withval="$with_utmp"
@@ -10231,7 +10280,7 @@ fi
 ################################################
 # include Using Samba O'Reilly book
 echo $ac_n "checking whether to install Using Samba book""... $ac_c" 1>&6
-echo "configure:10235: checking whether to install Using Samba book" >&5
+echo "configure:10284: checking whether to install Using Samba book" >&5
 # Check whether --with-sambabook or --without-sambabook was given.
 if test "${with_sambabook+set}" = set; then
   withval="$with_sambabook"
 #################################################
 # these tests are taken from the GNU fileutils package
 echo "checking how to get filesystem space usage" 1>&6
-echo "configure:10265: checking how to get filesystem space usage" >&5
+echo "configure:10314: checking how to get filesystem space usage" >&5
 space=no
 
 # Test for statvfs64.
 if test $space = no; then
   # SVR4
   echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
-echo "configure:10272: checking statvfs64 function (SVR4)" >&5
+echo "configure:10321: checking statvfs64 function (SVR4)" >&5
 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10276,7 +10325,7 @@ else
   fu_cv_sys_stat_statvfs64=cross
 else
   cat > conftest.$ac_ext <<EOF
-#line 10280 "configure"
+#line 10329 "configure"
 #include "confdefs.h"
 
 #if defined(HAVE_UNISTD_H)
@@ -10290,7 +10339,7 @@ else
     exit (statvfs64 (".", &fsd));
   }
 EOF
-if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_statvfs64=yes
 else
 if test $space = no; then
   # SVR4
   echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
-echo "configure:10327: checking statvfs function (SVR4)" >&5
+echo "configure:10376: checking statvfs function (SVR4)" >&5
 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10332 "configure"
+#line 10381 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/statvfs.h>
@@ -10336,7 +10385,7 @@ int main() {
 struct statvfs fsd; statvfs (0, &fsd);
 ; return 0; }
 EOF
-if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   fu_cv_sys_stat_statvfs=yes
 else
@@ -10361,7 +10410,7 @@ fi
 if test $space = no; then
   # DEC Alpha running OSF/1
   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
-echo "configure:10365: checking for 3-argument statfs function (DEC OSF/1)" >&5
+echo "configure:10414: checking for 3-argument statfs function (DEC OSF/1)" >&5
   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10369,7 +10418,7 @@ else
   fu_cv_sys_stat_statfs3_osf1=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10373 "configure"
+#line 10422 "configure"
 #include "confdefs.h"
 
 #include <sys/param.h>
@@ -10382,7 +10431,7 @@ else
     exit (statfs (".", &fsd, sizeof (struct statfs)));
   }
 EOF
-if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_statfs3_osf1=yes
 else
@@ -10409,7 +10458,7 @@ fi
 if test $space = no; then
 # AIX
   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
-echo "configure:10413: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
+echo "configure:10462: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10417,7 +10466,7 @@ else
   fu_cv_sys_stat_statfs2_bsize=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10421 "configure"
+#line 10470 "configure"
 #include "confdefs.h"
 
 #ifdef HAVE_SYS_PARAM_H
@@ -10436,7 +10485,7 @@ else
   exit (statfs (".", &fsd));
   }
 EOF
-if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_statfs2_bsize=yes
 else
@@ -10463,7 +10512,7 @@ fi
 if test $space = no; then
 # SVR3
   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
-echo "configure:10467: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
+echo "configure:10516: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10471,7 +10520,7 @@ else
   fu_cv_sys_stat_statfs4=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10475 "configure"
+#line 10524 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/statfs.h>
@@ -10481,7 +10530,7 @@ else
   exit (statfs (".", &fsd, sizeof fsd, 0));
   }
 EOF
-if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_statfs4=yes
 else
@@ -10508,7 +10557,7 @@ fi
 if test $space = no; then
 # 4.4BSD and NetBSD
   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
-echo "configure:10512: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
+echo "configure:10561: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10516,7 +10565,7 @@ else
   fu_cv_sys_stat_statfs2_fsize=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10520 "configure"
+#line 10569 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #ifdef HAVE_SYS_PARAM_H
@@ -10532,7 +10581,7 @@ else
   exit (statfs (".", &fsd));
   }
 EOF
-if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_statfs2_fsize=yes
 else
@@ -10559,7 +10608,7 @@ fi
 if test $space = no; then
   # Ultrix
   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
-echo "configure:10563: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
+echo "configure:10612: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10567,7 +10616,7 @@ else
   fu_cv_sys_stat_fs_data=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 10571 "configure"
+#line 10620 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #ifdef HAVE_SYS_PARAM_H
@@ -10587,7 +10636,7 @@ else
   exit (statfs (".", &fsd) != 1);
   }
 EOF
-if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   fu_cv_sys_stat_fs_data=yes
 else
@@ -10621,7 +10670,7 @@ fi
 #
 echo "checking if large file support can be enabled"
 cat > conftest.$ac_ext <<EOF
-#line 10625 "configure"
+#line 10674 "configure"
 #include "confdefs.h"
 
 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
@@ -10634,7 +10683,7 @@ int main() {
 int i
 ; return 0; }
 EOF
-if { (eval echo configure:10638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
 else
@@ -10659,11 +10708,11 @@ if test "$cross_compiling" = yes; then
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 10663 "configure"
+#line 10712 "configure"
 #include "confdefs.h"
 #include "${srcdir-.}/tests/summary.c"
 EOF
-if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   echo "configure OK";
 else
index 391e8c612a7704fd86a773b00643edd5a752a32a..79f43d5815966022d98839efce33c638c78bcd95 100644 (file)
@@ -910,6 +910,28 @@ if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
     AC_DEFINE(HAVE_FNMATCH)
 fi
 
+AC_CACHE_CHECK([for secure mkstemp],samba_cv_HAVE_SECURE_MKSTEMP,[
+AC_TRY_RUN([#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+main() { 
+  struct stat st;
+  char tpl[20]="/tmp/test.XXXXXX"; 
+  int fd = mkstemp(tpl); 
+  if (fd == -1) exit(1);
+  unlink(tpl);
+  if (fstat(fd, &st) != 0) exit(1);
+  if ((st.st_mode & 0777) != 0600) exit(1);
+  exit(0);
+}],
+samba_cv_HAVE_SECURE_MKSTEMP=yes,
+samba_cv_HAVE_SECURE_MKSTEMP=no,
+samba_cv_HAVE_SECURE_MKSTEMP=cross)])
+if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
+    AC_DEFINE(HAVE_SECURE_MKSTEMP)
+fi
+
 AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[
 AC_TRY_RUN([
 #include <stdio.h>
index d230974f44c727ab782fcec0de3f941bec24f26f..bf12c08e0c9231f64eb93050f28e22116c9c05db 100644 (file)
 #undef HAVE_EXPLICIT_LARGEFILE_SUPPORT
 #undef USE_BOTH_CRYPT_CALLS
 #undef HAVE_BROKEN_FCNTL64_LOCKS
+#undef HAVE_SECURE_MKSTEMP
 #undef HAVE_FNMATCH
 #undef USE_SETEUID
 #undef USE_SETRESUID
index 9155752f6725b9fea1911361675df9f131190e71..269a5dbbfe71953c8e14a2f6dff5f81d9b71b26f 100644 (file)
@@ -305,6 +305,7 @@ void zero_free(void *p, size_t size);
 int set_maxfiles(int requested_max);
 BOOL reg_split_key(char *full_keyname, uint32 *reg_type, char *key_name);
 char *smbd_mktemp(char *template);
+int smb_mkstemp(char *template);
 void *memdup(void *p, size_t size);
 char *myhostname(void);
 char *parent_dirname(const char *path);
index f4776ada015996e81fdf178e4fcb6f9e5dbea96d..f8db04c536801377c3d675f94f67c2637acc40fe 100644 (file)
@@ -1 +1 @@
-#define VERSION "2.0.7"
+#define VERSION "2.0.8"
index 3e9ca87fae359b9927e4320b8301ef0422c8a6f1..68b129988c10fdc1554d69a8092beab2b94b56e6 100644 (file)
@@ -3118,6 +3118,21 @@ char *smbd_mktemp(char *template)
        return p;
 }
 
+/*****************************************************************
+possibly replace mkstemp if it is broken
+ *****************************************************************/  
+int smb_mkstemp(char *template)
+{
+#if HAVE_SECURE_MKSTEMP
+       return mkstemp(template);
+#else
+       /* have a reasonable go at emulating it. Hope that
+          the system mktemp() isn't completly hopeless */
+       if (!mktemp(template)) return -1;
+       return open(template, O_CREAT|O_EXCL|O_RDWR, 0600);
+#endif
+}
+
 
 /*****************************************************************
 like strdup but for memory
index 13c09e638c98a1d458ac25ce6103494fb4cc9c19..bb4b7547a6e017d3900d08513ccb506905d4b082 100644 (file)
@@ -115,7 +115,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
 
       getdc = skip_string(machine,1);
       q = skip_string(getdc,1);
-      q = ALIGN2(q, outbuf);
+      q = ALIGN2(q, buf);
 
       /* at this point we can work out if this is a W9X or NT style
          request. Experiments show that the difference is wether the
index 00882837bd5e17dafbcbdccf70c64953eddf2f93..e3743f138dab29c39f34506ba3d70d7baf18250c 100644 (file)
@@ -1021,7 +1021,7 @@ int get_printqueue(int snum,
 
        standard_sub(conn,syscmd);
 
-       slprintf(outfile,sizeof(outfile)-1, "%s/lpq.%08x",tmpdir(),str_checksum(syscmd));
+       slprintf(outfile,sizeof(outfile)-1, "%s/lpq.%08x",lp_lockdir(),str_checksum(syscmd));
   
        if (!lpq_cache_reset[snum] && cachetime && !sys_stat(outfile,&sbuf)) {
                if (time(NULL) - sbuf.st_mtime < cachetime) {
@@ -1070,10 +1070,6 @@ int get_printqueue(int snum,
        
        if (!cachetime) {
                unlink(outfile);
-       } else {
-               /* we only expect this to succeed on trapdoor systems,
-                  on normal systems the file is owned by root */
-               chmod(outfile,0666);
        }
        return(count);
 }
index f36b5807ee2ff4da9a8bb4355c68ffe72aca4156..8ffed2f73a227f1c962e07da1ea67337900d1a41 100644 (file)
@@ -121,8 +121,6 @@ ssize_t read_file(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n)
   
   if (n > 0) {
     readret = read(fsp->fd_ptr->fd,data,n);
-    if (readret == -1)
-      return -1;
     if (readret > 0) ret += readret;
   }
 
index cc329d61a656c611e75972014e1c2d318377920c..a1e3ecae7808209cbef6d1081c840e77887b84ee 100644 (file)
@@ -40,8 +40,7 @@ deliver the message
 ****************************************************************************/
 static void msg_deliver(void)
 {
-  pstring s;
-  fstring name;
+  pstring name;
   int i;
   int fd;
 
@@ -53,13 +52,11 @@ static void msg_deliver(void)
     }
 
   /* put it in a temporary file */
-  slprintf(s,sizeof(s)-1, "%s/msg.XXXXXX",tmpdir());
-  fstrcpy(name,(char *)smbd_mktemp(s));
-
-  fd = sys_open(name,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL,0600);
+  slprintf(name,sizeof(name)-1, "%s/msg.XXXXXX",tmpdir());
+  fd = smb_mkstemp(name);
   if (fd == -1) {
-    DEBUG(1,("can't open message file %s\n",name));
-    return;
+         DEBUG(1,("can't open message file %s\n",name));
+         return;
   }
 
   /*
@@ -86,12 +83,13 @@ static void msg_deliver(void)
     {
       fstring alpha_msgfrom;
       fstring alpha_msgto;
+      pstring s;
 
       pstrcpy(s,lp_msg_command());
-      pstring_sub(s,"%s",name);
       pstring_sub(s,"%f",alpha_strcpy(alpha_msgfrom,msgfrom,sizeof(alpha_msgfrom)));
       pstring_sub(s,"%t",alpha_strcpy(alpha_msgto,msgto,sizeof(alpha_msgto)));
       standard_sub_basic(s);
+      pstring_sub(s,"%s",name);
       smbrun(s,NULL,False);
     }
 
index 9ae16f1dca32317b9056f3a93dda05590114fead..69f20a90aa46c9d71f8f173f4a515c5a2047da00 100644 (file)
@@ -2546,7 +2546,7 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
   size_t numtowrite = SVAL(inbuf,smb_vwv10);
   BOOL write_through = BITSETW(inbuf+smb_vwv7,0);
   ssize_t nwritten = -1;
-  unsigned int smb_doff = SVAL(inbuf,smb_vwv11);
+  int smb_doff = SVAL(inbuf,smb_vwv11);
   char *data;
 
   /* If it's an IPC, pass off the pipe handler. */
@@ -2557,9 +2557,6 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
   CHECK_WRITE(fsp);
   CHECK_ERROR(fsp);
 
-  if(smb_doff > smb_len(inbuf))
-    return(ERROR(ERRDOS,ERRbadmem));
-
   data = smb_base(inbuf) + smb_doff;
 
   if(CVAL(inbuf,smb_wct) == 14) {
@@ -2965,11 +2962,9 @@ int reply_echo(connection_struct *conn,
 {
        int smb_reverb = SVAL(inbuf,smb_vwv0);
        int seq_num;
-       unsigned int data_len = smb_buflen(inbuf);
+       int data_len = smb_buflen(inbuf);
        int outsize = set_message(outbuf,1,data_len,True);
-
-       data_len = MIN(data_len, (sizeof(inbuf)-(smb_buf(inbuf)-inbuf)));
-
+       
        /* copy any incoming data back out */
        if (data_len > 0)
                memcpy(smb_buf(outbuf),smb_buf(inbuf),data_len);
index f7f7b8c8ea931191d4d48ce33ddb04e605455f9f..16d6ae3cf8e2f36fe0c25495aca063fe86aa4fd5 100644 (file)
@@ -33,15 +33,14 @@ setup the shared area
 void smbw_setup_shared(void)
 {
        int fd;
-       pstring s, name;
+       pstring name;
 
-       slprintf(s,sizeof(s)-1, "%s/smbw.XXXXXX",tmpdir());
+       slprintf(name,sizeof(name)-1, "%s/smbw.XXXXXX",tmpdir());
 
-       fstrcpy(name,(char *)smbd_mktemp(s));
+       fd = smb_mkstemp(name);
 
-       /* note zero permissions! don't change this */
-       fd = sys_open(name,O_RDWR|O_CREAT|O_TRUNC|O_EXCL,0); 
        if (fd == -1) goto failed;
+
        unlink(name);
 
        shared_fd = set_maxfiles(SMBW_MAX_OPEN);
@@ -54,9 +53,9 @@ void smbw_setup_shared(void)
 
        DEBUG(4,("created shared_fd=%d\n", shared_fd));
 
-       slprintf(s,sizeof(s)-1,"%d", shared_fd);
+       slprintf(name,sizeof(name)-1,"%d", shared_fd);
 
-       smbw_setenv("SMBW_HANDLE", s);
+       smbw_setenv("SMBW_HANDLE", name);
 
        return;
 
index e4f603e0ce27f63f7a8d3fa23686a075f6c054c6..3f31b25fe82f6248af35a15545d3002a054a17e5 100644 (file)
@@ -70,7 +70,7 @@ cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
                       lp_lockdir());
                ret = 1;
        } else if ((st.st_mode & 0777) != 0755) {
-               printf("WARNING: lock directory %s should have permissions 0755 for browsing to work\n",
+               printf("ERROR: lock directory %s should have permissions 0755 for security and for browsing to work\n",
                       lp_lockdir());
                ret = 1;
        }
index 9ef62101ebcb4c4c0bf48ca93679de91eb7ec3b5..81441d9613c1d7a1683b917a495c7161ef3e336e 100644 (file)
@@ -40,10 +40,10 @@ Please choose a configuration action using one of the above buttons
     <li><a href="/swat/help/NT_Security.html" target="docs">Changing UNIX permissions using NT</a>
     <li><a href="/swat/help/smbrun.1.html" target="docs">smbrun</a> - internal smbd utility
    </ul>
- <li><b>Books</b>
-   <ul>
-   <li><a href="/swat/using_samba/index.html" target="docs">Using Samba</a> - by Robert Eckstein, David Collier-Brown and Peter Kelly
-   </ul>
+@BOOKDIR@  <li><b>Books</b>
+@BOOKDIR@      <ul>
+@BOOKDIR@        <li><a href="/swat/using_samba/index.html" target="docs">Using Samba</a> - by Robert Eckstein, David Collier-Brown and Peter Kelly
+@BOOKDIR@      </ul>
 </ul>
 
 <h3>Feedback</h3>