- 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.
+
<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\&.0 of the Samba suite\&.
+<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>
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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
-.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]
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
.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
-.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
-.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
-.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
-.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
-.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
-.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
!==
-!== 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
!==
-!== 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>
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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)
!==
-!== 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>
!==
-!== 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
!==
-!== 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
!==
-!== 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.
!==
-!== 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:
!==
-!== 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:
=========================================================================
!==
-!== 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!
!==
-!== 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
!==
-!== 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?
!==
-!== 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.
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
!==
-!== 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
!==
-!== 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
!==
-!== 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.
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
==========================
!==
-!== 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
!==
-!== 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
!==
-!== 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
=============================
!==
-!== 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
!==
-!== 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
!==
-!== 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
!==
-!== 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
------------------------
!==
-!== 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
!==
-!== 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>
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()
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.
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)
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
# 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
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
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
# 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;
# 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);
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);
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";
}
}
}
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";
#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
****************************************************************************/
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);
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);
}
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);
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;
do_put(rname,lname);
}
fclose(f);
- unlink(tmpname);
}
}
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
samba_cv_REPLACE_INET_NTOA=cross
else
cat > conftest.$ac_ext <<EOF
-#line 8864 "configure"
+#line 8913 "configure"
#include "confdefs.h"
#include <stdio.h>
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
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
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
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
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
# 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
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
#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
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
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
#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
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
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
#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
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
samba_cv_USE_SETRESUID=cross
else
cat > conftest.$ac_ext <<EOF
-#line 9117 "configure"
+#line 9166 "configure"
#include "confdefs.h"
#define AUTOCONF_TEST 1
#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
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
samba_cv_USE_SETREUID=cross
else
cat > conftest.$ac_ext <<EOF
-#line 9160 "configure"
+#line 9209 "configure"
#include "confdefs.h"
#define AUTOCONF_TEST 1
#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
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
samba_cv_USE_SETEUID=cross
else
cat > conftest.$ac_ext <<EOF
-#line 9202 "configure"
+#line 9251 "configure"
#include "confdefs.h"
#define AUTOCONF_TEST 1
#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
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
samba_cv_USE_SETUIDX=cross
else
cat > conftest.$ac_ext <<EOF
-#line 9244 "configure"
+#line 9293 "configure"
#include "confdefs.h"
#define AUTOCONF_TEST 1
#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
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
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
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
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
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
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
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
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
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
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)
#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
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
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
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
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
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
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
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)
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
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
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
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
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
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
#################################################
# 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"
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"
# 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"
################################################
# 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
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)
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>
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
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
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>
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
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
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
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
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
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>
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
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
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
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
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
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
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
#
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)))
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
:
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
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>
#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
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);
-#define VERSION "2.0.7"
+#define VERSION "2.0.8"
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
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
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) {
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);
}
if (n > 0) {
readret = read(fsp->fd_ptr->fd,data,n);
- if (readret == -1)
- return -1;
if (readret > 0) ret += readret;
}
****************************************************************************/
static void msg_deliver(void)
{
- pstring s;
- fstring name;
+ pstring name;
int i;
int fd;
}
/* 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;
}
/*
{
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);
}
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. */
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) {
{
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);
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);
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;
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;
}
<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>