Jeremy Allison [Tue, 17 Feb 2009 21:43:28 +0000 (13:43 -0800)]
Fix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy.
(cherry picked from commit
ca2c1eea4a766a3ee0d073520b19ce16f0586678)
Günther Deschner [Tue, 17 Feb 2009 14:42:06 +0000 (15:42 +0100)]
s3: remove duplicate prototypes for generated rpc server functions.
Guenther
(cherry picked from commit
6934180fd37417f7bf9b8b107d9cecea1b683720)
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:37 +0000 (10:28 +0100)]
s3:make: use pidl/pidl for 'make idl'
metze
(cherry picked from commit
3dc256ad0f1d2b1c131d67e033533dd316eab252)
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:04 +0000 (10:28 +0100)]
fix proto.h after idl changes
metze
(cherry picked from commit
9d56f847b6fb88ab0529fdc6318dff5389c9d3db)
Stefan Metzmacher [Tue, 17 Feb 2009 08:04:58 +0000 (09:04 +0100)]
librpc: rerun 'PIDL=pidl/pidl make idl'
metze
(cherry picked from commit
eb1a2e4aea76462086a4303ba325c4da49e891cd)
Stefan Metzmacher [Mon, 16 Feb 2009 09:20:55 +0000 (10:20 +0100)]
s3:netlogon: implement _netr_LogonGetCapabilities() with NT_STATUS_NOT_IMPLEMENTED
This hopefully fixes bug #6100.
metze
(cherry picked from commit
fe417b29bd23b7b935669993e0f01de4c7de2378)
(cherry picked from commit
2f858cb914842e9af1331477ec6eb9782dbd0cf5)
Stefan Metzmacher [Mon, 16 Feb 2009 09:42:43 +0000 (10:42 +0100)]
netlogon.idl: add idl for netr_LogonGetCapabilities()
metze
(cherry picked from commit
8339969ed39e4cf3577971869ef2fd127f1c3ae3)
(cherry picked from commit
5410134c70e3302c05b73109610c28dfa1a0dc69)
Günther Deschner [Fri, 31 Oct 2008 21:39:25 +0000 (22:39 +0100)]
s3-accessmask: re-run make samba3-idl and remove duplicate copies.
Guenther
(cherry picked from commit
1cbfcd7dcb90c117fa623246d6924e157ec5be3f)
Günther Deschner [Tue, 17 Feb 2009 01:43:12 +0000 (02:43 +0100)]
s3: re-run make idl.
No panic, this just removes the NDR_BUFFER flag from ndr functions when there is
no buffer to process.
Guenther
(cherry picked from commit
b424555c5a876b3eb71ec2346e73bd2b6a56a7ea)
Günther Deschner [Tue, 17 Feb 2009 01:35:00 +0000 (02:35 +0100)]
pidl: add copy of pidl to 3-3-test in order to regenerate librpc code.
pidl's reference is
79190992b3820cd028c961c48bdea9b35baf13c9 here.
Guenther
(cherry picked from commit
55d1dacf4d49abcaace17a5f8a200c319e0389eb)
Karolin Seeger [Mon, 16 Feb 2009 14:38:51 +0000 (15:38 +0100)]
s3-WHATSNEW: Update WHATSNEW.
Karolin
(cherry picked from commit
a6f8d9dad6ffedd62345922a2c5bef877f67dd9b)
Steven Danneman [Fri, 26 Dec 2008 20:41:29 +0000 (12:41 -0800)]
Make sharesec utility part of the default binary install.
This used to be commit
8f84d42f7.
(cherry picked from commit
ee2f265d3357635858db1e0f8c7f6df3219a883f)
Yasuma Takeda [Mon, 16 Feb 2009 13:07:37 +0000 (14:07 +0100)]
Fix bug 5920
The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer
(cherry picked from commit
cb9dd0f58d06a78b7724c3e0ec8f81512edc2d29)
(cherry picked from commit
a7d30e159b2809abda9de4284bf2344db297ee22)
Karolin Seeger [Mon, 16 Feb 2009 10:30:30 +0000 (11:30 +0100)]
s3-WHATSNEW: Start WHATSNEW for 3.3.1.
Karolin
(cherry picked from commit
311abc32da851894edff3324acbe58213c131729)
Jeremy Allison [Mon, 16 Feb 2009 02:18:38 +0000 (18:18 -0800)]
Attempt to fix bug #6099. According to Microsoft
Windows 7 looks at the negotiate_flags
returned in this structure *even if the
call fails with access denied ! So in order
to allow Win7 to connect to a Samba NT style
PDC we set the flags before we know if it's
an error or not.
Jeremy.
(cherry picked from commit
cafc9efceadcefa9154874e9846158cf23ee1645)
Derrell Lipman [Sun, 15 Feb 2009 20:00:25 +0000 (15:00 -0500)]
Remove compiler warnings about unknown structure pointer
(cherry picked from commit
f11d4d088c17db77ba259972c05de72da0d3ac93)
Tim Prouty [Sun, 15 Feb 2009 04:34:41 +0000 (20:34 -0800)]
s3 vfs: Fix SMB_VFS_RECVFILE/SENDFILE macros
(cherry picked from commit
c0aa23d119737bbb197eaadaa2eedc853b5179a1)
Derrell Lipman [Sun, 15 Feb 2009 03:30:21 +0000 (22:30 -0500)]
remove accidental white space
(cherry picked from commit
82e392f6b24518d40ea65dbdf044d8ba94e77ae2)
Derrell Lipman [Sun, 15 Feb 2009 03:30:13 +0000 (22:30 -0500)]
enums are traditionally signed. Avoid use of high bit in bit flags.
(cherry picked from commit
480054f3625fcd4532a4cdc68bd750e93610d89f)
Derrell Lipman [Sat, 14 Feb 2009 23:56:44 +0000 (18:56 -0500)]
Get rid of the warnings I had for testing
(cherry picked from commit
f38c50b13f3ad916db884611ad4199198f6cade2)
Derrell Lipman [Sat, 14 Feb 2009 21:11:50 +0000 (16:11 -0500)]
It seems some systems use f_flags instead of f_flag. Use the appropriate one.
(cherry picked from commit
3b12ab74252c850348c2d15adf930aa01e0652ff)
Derrell Lipman [Sat, 14 Feb 2009 15:07:51 +0000 (10:07 -0500)]
Ensure consistency of values on stack (caught by AIX compiler)
(cherry picked from commit
3b7e35a54f1aa7d31df60b0264cc171cf5d97954)
Derrell Lipman [Sat, 14 Feb 2009 14:43:46 +0000 (09:43 -0500)]
ignore new test program executables
(cherry picked from commit
f5e5daeb8fd6133211dfbc4f4b309d5432dddb16)
Derrell Lipman [Sat, 14 Feb 2009 14:42:59 +0000 (09:42 -0500)]
Check for the right error return value
(cherry picked from commit
4d2598282bb9f0c08da9f949ff23ff253c0ca7ac)
Holger Hetterich [Wed, 4 Feb 2009 14:31:24 +0000 (15:31 +0100)]
Enable total anonymization in vfs_smb_traffic_analyzer, by mapping any user names to the one given by anonymize_prefix, without generating a hash number. This setting is optional and is compatible with the module configuration format of Samba 3.3.
(cherry picked from commit
31d854fff40799f056748333c35df81466c3614c)
Jeremy Allison [Sat, 14 Feb 2009 00:04:15 +0000 (16:04 -0800)]
Parameterize in local.h the MAX_RPC_DATA_SIZE, and ensure
that "offered" read from the rpc packet in spoolss is under
that size. Tidyup from analysis from Veracode.
Jeremy.
(cherry picked from commit
6b654d12fd46b68fef824bf281783396ca81283d)
Jeremy Allison [Fri, 13 Feb 2009 23:08:57 +0000 (15:08 -0800)]
Noted by Vericode analysis. Correctly use chroot().
Jeremy.
(cherry picked from commit
30a01422a21bd54b2b3a58729fbf25ab173845e8)
Volker Lendecke [Fri, 13 Feb 2009 20:52:21 +0000 (21:52 +0100)]
Fix Coverity ID 740 (RESOURCE_LEAK)
(cherry picked from commit
d67b92eede5e648b73aea992e009a8996705ffa0)
Volker Lendecke [Fri, 13 Feb 2009 18:06:39 +0000 (10:06 -0800)]
Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)
(cherry picked from commit
84010436579854ad9429c82c7e7050d902955344)
Volker Lendecke [Fri, 13 Feb 2009 17:58:35 +0000 (09:58 -0800)]
Fix Coverity ID 742 (RESOURCE_LEAK)
(cherry picked from commit
aa4a8b4aece5b11ac4c1db87b87ebadc0a362514)
Volker Lendecke [Fri, 13 Feb 2009 17:53:56 +0000 (09:53 -0800)]
Fix Coverity ID 744
This was marked as a resource leak. This change makes the code a bit clearer
that we always free error_string.
(cherry picked from commit
fa0ac60d985995a6a07aa05b114683f4cbd731c8)
Stefan Metzmacher [Wed, 11 Feb 2009 10:47:41 +0000 (11:47 +0100)]
s3:auth: only create_local_token() should add S-1-22-X-Y sids
metze
(cherry picked from commit
e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7)
(cherry picked from commit
cc1c764effd07bb124b5b5cf03fb5a4565c8ed36)
Stefan Metzmacher [Wed, 11 Feb 2009 10:46:18 +0000 (11:46 +0100)]
s3:auth: add S-1-22-X-Y sids to the local token
metze
(cherry picked from commit
f14e4d4e54f424c05147cb0e635c9b8930270262)
(cherry picked from commit
490f7214f0d26e7466f0fdfb978e4b09f2433146)
Volker Lendecke [Fri, 13 Feb 2009 10:18:31 +0000 (11:18 +0100)]
Fix Coverity ID 745 (RESOURCE_LEAK)
(cherry picked from commit
3077f2ab45b08595b4849add56110a37069d12ec)
Dan Sledz [Thu, 12 Feb 2009 20:02:43 +0000 (12:02 -0800)]
Fix double free caused by incorrect talloc_steal usage.
(cherry picked from commit
7274764436deb21f821c7a62a3ac3454e1af9025)
Derrell Lipman [Thu, 12 Feb 2009 14:16:48 +0000 (09:16 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient
- DFS is not a POSIX feature, so the state of that bit should be zero if DFS
is *not* supported. Bit feature reversed.
- Added smbc_statvfs function
Derrell
(cherry picked from commit
0697cffe211a922c816b6c75230c4186328498ed)
Yasuma Takeda [Wed, 11 Feb 2009 22:36:51 +0000 (14:36 -0800)]
Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work correctly with "security = domain"
1. If DNS server is invalid, the get_sorted_dc_list() is called with
realm(FQDN) and it fails.
2. On the next step, the get_sorted_dc_list() is called with realm(FQDN) again.
I think "again" is wrong place.
On the 2nd step, get_sorted_dc_list() should be called with realm(WORKGROUP).
(cherry picked from commit
a8a7040d7dbffe7b1c2bccb8b46e08fb996786ac)
Michael Adam [Wed, 11 Feb 2009 21:27:48 +0000 (22:27 +0100)]
s3:packaging: fix parsing of include.h in fill-templates
The content has changed slightly in master for the merged build,
and we must be more exact when parsing the lines.
Michael
(cherry picked from commit
d1b2f90f881d554e844525ddf44232b04f14e8eb)
Michael Adam [Wed, 11 Feb 2009 21:25:41 +0000 (22:25 +0100)]
s3:packaging: fix path to calling update-pkginfo after pushd in fill-templates
Michael
(cherry picked from commit
88a3430e6db9fe31fe711a6fdc90d6604dac63e3)
Michael Adam [Wed, 11 Feb 2009 21:24:52 +0000 (22:24 +0100)]
s3:packaging: paths cosmetics in fill-templates
Michael
(cherry picked from commit
d75e0756a39e30414d5277edd2e098da9cec464e)
Björn Jacke [Wed, 11 Feb 2009 15:34:02 +0000 (16:34 +0100)]
enable IPv6 support for NetBSD, FreeBSD
most systems include netinet/in.h via netdb.h but *BSD don't.
(cherry picked from commit
5b551d6e3ef2c69a5fd050abcecb4c6b0ab36402)
Michael Adam [Wed, 11 Feb 2009 10:02:57 +0000 (11:02 +0100)]
s3:build: some implementations of "ln" are picky about the order of arguments
Michael
(cherry picked from commit
1ea19073afa1e9a04f18763b731d792ffe97d499)
Volker Lendecke [Wed, 11 Feb 2009 03:08:46 +0000 (19:08 -0800)]
Fix resume handle for _samr_EnumDomainGroups
(cherry picked from commit
5f69f4a57ec0942d3c5c6969cb2bccab0ca6ec4c)
Michael Adam [Tue, 10 Feb 2009 22:52:40 +0000 (23:52 +0100)]
packaging: make update-pkginfo callable from any directory
Michael
(cherry picked from commit
7ea90835ebf6e2f2c6f325760800d8361d087ede)
(cherry picked from commit
d5d668efc0b5af825344ec01851c105fe91a3096)
Michael Adam [Fri, 12 Sep 2008 13:07:00 +0000 (15:07 +0200)]
packaging: use "find" instead of "du" to find files... :-)
Michael
(This used to be commit
768aa82361a2c4b0aab71433b7593723a2868f0a)
(cherry picked from commit
fd7635a1161e25d88a8252a5cf9de70ca2fe4232)
(cherry picked from commit
0f7ced3088f327417e32a509fa3e5b4c3c19b93c)
Michael Adam [Tue, 10 Feb 2009 22:50:14 +0000 (23:50 +0100)]
packaging: remove commented out stuff from update-pkginfo
Michael
(cherry picked from commit
d714e58ec1f74897cd13e7cd9dd9003600052b45)
(cherry picked from commit
6e47cc96526961486e545285a46f2bc31e6cd2a2)
Michael Adam [Tue, 10 Feb 2009 22:31:52 +0000 (23:31 +0100)]
packaging: don't clutter the output of fillup-templates with popd output
Michael
(cherry picked from commit
0c711935d30b500a15ef06fd658d382b2c1e2c84)
(cherry picked from commit
9e54a408acab42abb073c8660cadebdd0975fa04)
Michael Adam [Tue, 10 Feb 2009 22:30:48 +0000 (23:30 +0100)]
packaging: fix fill-templates call to update-pkginfo to pushd appropriately first
Michael
(cherry picked from commit
c28d4ae537d9fc0b76eae758d32356eaf1113c89)
(cherry picked from commit
0f9cfcb7a1b34a6e76209a0fe0e8d49e3ffe15c5)
Michael Adam [Tue, 10 Feb 2009 17:54:16 +0000 (18:54 +0100)]
packaging: add script fill-templates
This is a standalone-wrapper for update-pkginfo, which is
usually called from create-tarball. It basically repeats
some functionality of create-tarball.
Michael
(cherry picked from commit
ca23469a906bab690162184e8d3949897f7b5a67)
(cherry picked from commit
3c7927141d0fa586440ecd4c39bd601c1f9a5bfa)
Derrell Lipman [Tue, 10 Feb 2009 20:03:32 +0000 (15:03 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient
- Fill in the remainder of the data (or at least as much as we can get) for
the fstatvfs return value.
Derrell
(cherry picked from commit
eeeceea8b92b8b814209f496a7ab953dcd0a8367)
Derrell Lipman [Tue, 10 Feb 2009 15:28:32 +0000 (10:28 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient
- Reverse the sense of the flags. Since the fstatvfs() function on POSIX-like
systems would almost certainly indicate case sensitivity (for example),
leave the bit turned off if the result is the POSIX-like result just as if
issued on a typical local file system on a POSIX system.
Derrell
(cherry picked from commit
0acc962e3968253a3f64b5a92def177ced44994d)
Günther Deschner [Tue, 10 Feb 2009 09:59:34 +0000 (10:59 +0100)]
s3-spoolss: fix memleak in get_remote_printer_publishing_data().
Guenther
(cherry picked from commit
97f1514ce95800f1296b1979f1b34dcc5d56a376)
Derrell Lipman [Tue, 10 Feb 2009 03:46:29 +0000 (22:46 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient
- Complete the implementation of the f_flag field. We now return a flag
indicatin UNIX CIFS, CASE SENSITIVE, and/or DFS support.
Derrell
(cherry picked from commit
df15e8f84d108f8e9df1408155b0f9ccc44da3fe)
Michael Adam [Mon, 9 Feb 2009 22:26:36 +0000 (23:26 +0100)]
Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary."
This reverts commit
3981603761a1cc6fb74ff135fadf4ab3340be1c5.
I was confused about the real meaning of find_domain_from_name_noinit()
vs. find_domain_from_name(). We don't need the connection established
here, just the domain struct which gets initialized by rescan_trusted_domains().
Sorry for the noise.
Michael
(cherry picked from commit
c8e295a1b5216c1190ec5d555606b3eadabab82a)
Karolin Seeger [Mon, 9 Feb 2009 20:00:47 +0000 (21:00 +0100)]
docs: Add man sharesec.
Karolin
(cherry picked from commit
cc51cbc862055975bcef016876662576b00e72ef)
(cherry picked from commit
b16d6aaf981e6b0b7c706f6abd659dc3cde30094)
Derrell Lipman [Mon, 9 Feb 2009 17:41:29 +0000 (12:41 -0500)]
[Bug 6069] Add a fstatvfs function for libsmbclient
- Add initial test implementation. This works on a Linux client to determine
whether a connection's server supports UNIX CIFS. I'm eager to see what the
build farm has to say about this, specifically how many, if any, hosts don't
provide a statvfs.h file with the requisite struct statvfs.
Derrell
(cherry picked from commit
ff6a1bebd589637a4aecb9c76b4e33f579d7b0df)
Michael Adam [Mon, 9 Feb 2009 12:50:31 +0000 (13:50 +0100)]
s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.
Calling find_domain_from_name_noinit() might not be enough here.
This makes winbindd_getpwent() behave the same as winbindd_getgrent().
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
3981603761a1cc6fb74ff135fadf4ab3340be1c5)
Michael Adam [Mon, 9 Feb 2009 10:07:11 +0000 (11:07 +0100)]
s3:winbindd_user: fix a debug message.
find_domain_from_name_noinit() is no longer called only for
name alias support.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
ca6e3ee1e52b16e88f3906dc4cf64e977e165663)
Volker Lendecke [Sat, 7 Feb 2009 10:09:45 +0000 (11:09 +0100)]
Fix coverity ID 876 (FORWARD_NULL)
Michael, please check!
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
bd0febbd1b390b2890df13fbfed5bf26dede658f)
Volker Lendecke [Mon, 9 Feb 2009 11:32:16 +0000 (12:32 +0100)]
Fix count in _srvsvc_NetDiskEnum()
Without this, remotely adding a share via MMC fails
(cherry picked from commit
197b4c42bbf53347f4953e39099192693d709a7d)
(cherry picked from commit
7f6bf488fd3758f631edcade61378955cf9bf674)
Günther Deschner [Sun, 8 Feb 2009 23:06:36 +0000 (00:06 +0100)]
s3-rpcclient: fix getform command asprintf return code.
Guenther
(cherry picked from commit
6dc87c67198f27c359370399022910ba77c1d44d)
Derrell Lipman [Mon, 9 Feb 2009 03:07:25 +0000 (22:07 -0500)]
eliminate compiler warnings
(cherry picked from commit
b657020d0a3d43099e55956d13a7a73324888bcb)
Jeff Layton [Fri, 6 Feb 2009 13:31:45 +0000 (08:31 -0500)]
mount.cifs: initialize rc to 0 in main
The value of rc in main() isn't initialized in the declaration. This
wasn't a problem before, but Shirish's fakemount patch can make it so
that we return the uninitialized variable if the -n flag is used.
Fix this by initializing rc to 0.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
45d75ece3e35b5180e82dc0488b13fbd2a93c41e)
Shirish Pargaonkar [Fri, 6 Feb 2009 13:15:35 +0000 (08:15 -0500)]
mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs
...so that these options work correctly when passed in by mount(8).
(cherry picked from commit
5cd79db1326d70c592e86491d36567a2eb4e1717)
Michael Adam [Fri, 6 Feb 2009 09:42:11 +0000 (10:42 +0100)]
s3:net conf: remove check for sharename being a usernam in "net conf addshare"
This is useless and can be overriden by "net conf setparm" anyways.
Michael
(cherry picked from commit
e513360db3f2cc6ff1865ec08fc243dd6346e18e)
Michael Adam [Thu, 5 Feb 2009 21:19:58 +0000 (22:19 +0100)]
docs: fix two typos in the mount.cifs manpage
Michael
(cherry picked from commit
145fe37766cf1ecffb16a03b58b44d08f7ed7558)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
38ea92a4c1cb0e8c52ccff9b77bb59070030d10c)
Karolin Seeger [Fri, 6 Feb 2009 08:41:21 +0000 (09:41 +0100)]
docs: Clarify "ldap ssl" description in man smb.conf.
Mention "ldap ssl ads".
Karolin
(cherry picked from commit
61f1747441ff43c1d9c99bbf69e218c1984834c7)
(cherry picked from commit
ba3884d4d5c55723c1989e8e3868aa7ea8db8c60)
Karolin Seeger [Fri, 6 Feb 2009 08:10:15 +0000 (09:10 +0100)]
docs: Add description of "ldap ssl ads" to man smb.conf.
Karolin
(cherry picked from commit
02f13538f00cc8368e3e5e8e510bac468c21089b)
(cherry picked from commit
fef1a664de477b3d434b9d8c276933236042ae20)
Günter Kukkukk [Fri, 6 Feb 2009 02:59:03 +0000 (18:59 -0800)]
Don't try and delete a default ACL from a file.
(cherry picked from commit
1d277bdb6997e3b913bcd1c0b3173c9c735e64c1)
Aravind Srinivasan [Thu, 5 Feb 2009 22:46:59 +0000 (14:46 -0800)]
Have nmbd check all available interfaces for WINS before failing
When nmbd is acting as WINS, it picks the first interface's IP as WINS
server's IP. If the first interface's IP is zero, we will just quit
(even though we might have other interfaces with valid IPs).
This patch makes nmbd look at all interfaces and pick the first interface
with a valid IP as the WINS server's IP.
(cherry picked from commit
d998ee9025f2ad2df73e25c12e35e9218b97147e)
Shirish Pargaonkar [Thu, 5 Feb 2009 19:16:53 +0000 (14:16 -0500)]
umount.cifs: clean-up entries in /etc/mtab after unmount
This patch removes the remaining entry in /etc/mtab after a filesystem
is unmounted by canonicalizing the mountpoint supplied on the command
line.
Please refer to bug 4370 in samba bugzilla.
(cherry picked from commit
544faebe894b2b0661d6c9fe68ee7c01945ee824)
Karolin Seeger [Thu, 5 Feb 2009 14:55:14 +0000 (15:55 +0100)]
s3/libads: Change "ldap ssl:ads" parameter to "ldap ssl ads".
This used to be commit
3f9daf43.
Karolin
(cherry picked from commit
91c78b7d2bbb52015378f2a9752e783df33a6fff)
Günther Deschner [Wed, 4 Feb 2009 22:55:54 +0000 (23:55 +0100)]
s3-net: remove unused ENUM_HND.
Guenther
(cherry picked from commit
a713060a6e36706cfd5b997aa4cbfabf4e180c84)
Jeremy Allison [Wed, 4 Feb 2009 23:35:02 +0000 (15:35 -0800)]
Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
Reported by Kukks. Make sure we correctly use LSTAT in all cases where
POSIX pathnames are being used. This matters when dealing with symlinks
pointing to invalid paths being renamed or deleted not all deletes and
renames are done via an nt_create open.
Jeremy.
(cherry picked from commit
249dab1abbf49b0ca45360eb9aedb20d51a80e5f)
Miguel Suarez [Tue, 3 Feb 2009 22:35:19 +0000 (14:35 -0800)]
Fix bug #6085 - In vfs_default.c change utime( ) call.
(cherry picked from commit
2937519665be41237ee0f2c3374bea716bf95e8a)
Ted Percival [Tue, 3 Feb 2009 22:10:20 +0000 (14:10 -0800)]
Probably fixes a crash during name resolution when log level >= 10
and libc segfaults if printf is passed NULL for a "%s" arg
(eg. Solaris).
(cherry picked from commit
16e49e8be8a942aa77a013c197a20d4c0bb3875f)
Volker Lendecke [Tue, 3 Feb 2009 13:41:49 +0000 (14:41 +0100)]
s3: Fix 'net rpc join' for users with the SeMachineAccountPrivilege.
This used to be commit
fda8abac in master.
(cherry picked from commit
5994c90ff8754b64a3a6658e28bd94f6a91a441b)
Jeremy Allison [Tue, 3 Feb 2009 01:11:15 +0000 (17:11 -0800)]
Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or delete file
This fixes the generic rename/delete problem for 3.3.0 and above.
Fixed slightly differently to discussions, user viewable modified
ACLs are not a good idea :-).
Jeremy.
(cherry picked from commit
c5462c8b43435763783185a03029903efe3b0c11)
Lars Müller [Mon, 2 Feb 2009 20:38:38 +0000 (21:38 +0100)]
Adjust regex to match variable names including underscores
This is required to get the CIFSUPCALL_PROGS setting extracted from
config.log.
(cherry picked from commit
64982295fccc5758aff4464b5527a27621386bc9)
Lars Müller [Mon, 2 Feb 2009 20:12:52 +0000 (21:12 +0100)]
Conditional install of the cifs.upcall man page
Only install the cifs.upcall man page if CIFSUPCALL_PROGS was set while
configure.
(cherry picked from commit
e9e2414e798a2eb447de45803e61cc0a49752f11)
Tim Prouty [Mon, 2 Feb 2009 07:59:53 +0000 (23:59 -0800)]
s3 build: Fix "assignment discards qualifiers from pointer target type" warnings
(cherry picked from commit
1aa6c76dd003b0c625c6910bb78798a7d98c5a8c)
Karolin Seeger [Mon, 2 Feb 2009 10:46:39 +0000 (11:46 +0100)]
docs: Describe "service" in man mount.cifs.
This fixes bug #5346.
Thanks to the Debian Samba package maintainers for reporting and providing a
patch!
Karolin
(cherry picked from commit
73f4fc1f802f31459b70dba4777d142d00fcdd92)
(cherry picked from commit
ab4768452811e67f6606253b5a79101184f777d0)
Björn Jacke [Sun, 1 Feb 2009 02:22:41 +0000 (03:22 +0100)]
fix build with external dns_sd libraries
This used to be commit
16f07280 in master.
(cherry picked from commit
89919a131b234485564ff2f2f20e3d9f9eb83522)
Michael Adam [Sun, 1 Feb 2009 23:46:57 +0000 (00:46 +0100)]
s3:winbind_group: fix "getent group" to allocate new gids.
"getent group" used to fill the idmap cache with negative
cache entries for unmapped group sids.
Don't pass domain name unconditionally to idmap_sid_to_gid().
idmap_sid_to_gid() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".
Note that it is _wrong_ to directly call the idmap_sid_to_gid()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_gid request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.
Michael
(cherry picked from commit
8c64302915bde8a5400b575389b12e0eaf2cf140)
Michael Adam [Sun, 1 Feb 2009 23:36:59 +0000 (00:36 +0100)]
s3:winbind_user: fix "getent passwd" to allocate new uids.
"getent passwd" used to fill the idmap cache with negative
cache entries for unmapped user sids.
Don't pass domain name unconditionally to idmap_sid_to_[ug]id().
idmap_sid_to_[ug]id() only creates new mappings (allocating
idmap backends tdb, tdb2, ldap...) when the domain name passed
in is "".
Note that it is _wrong_ to directly call the idmap_sid_to_[ug]id()
functions here, in the main winbindd. The correct fix would be
to send a sid_to_[ug]id request to winbindd itself, but this needs
more work to prepare the async mechanisms, and we nee a quick
fix for getent passwd now.
Michael
(cherry picked from commit
877808450bb108ed306ef77db97a3acc7297e579)
Michael Adam [Sun, 1 Feb 2009 23:35:43 +0000 (00:35 +0100)]
s3:winbind_user: move initialization of domain up in winbindd_fill_pwent()
and streamline logic some
Michael
(cherry picked from commit
f2acdca4ded8646752d154d55a0ade405f159e17)
Volker Lendecke [Thu, 2 Oct 2008 00:17:04 +0000 (02:17 +0200)]
Fix bug 5798: "CFLAGS info lost in configure"
picked from
9097a67de
Volker
(cherry picked from commit
9ffb1e6f0ded2647efe567912873a1a63e2ffed1)
Günther Deschner [Thu, 22 Jan 2009 18:31:22 +0000 (19:31 +0100)]
s3-docs: fix typo in eventlogadm manpage.
Guenther
(cherry picked from commit
fb7b92abc2bea4b3d91cdd896f02db88065a4b8f)
(cherry picked from commit
0cc588ac53316299d2e1ff7d61947fd864d412f9)
Jeremy Allison [Fri, 30 Jan 2009 01:56:08 +0000 (17:56 -0800)]
Fix coverity CID#117 - resource leak in error path.
Jeremy.
(cherry picked from commit
250caa1f2f285063249b2c4a7266196938d24761)
Jeremy Allison [Fri, 30 Jan 2009 01:30:45 +0000 (17:30 -0800)]
Fix coverity CID#116. Resource leak on error path.
Jeremy.
(cherry picked from commit
8241669521772cc75a9ca278a7f9a57256907ded)
Jeremy Allison [Fri, 30 Jan 2009 01:27:16 +0000 (17:27 -0800)]
Fix coverity CID#115. Resource leak in error path.
Jeremy.
(cherry picked from commit
8e11901f92b2ecb976f0c24c5eb96fb6b8127207)
Björn Jacke [Thu, 29 Jan 2009 21:59:00 +0000 (22:59 +0100)]
add Tru64 sub-second resolution timestamp support
(cherry picked from commit
61465c57b9579a6f25381a9f16bca0852ca67f75)
Björn Jacke [Thu, 29 Jan 2009 20:59:44 +0000 (21:59 +0100)]
add configure check for Tru64 sub-second timestamp resolution
(cherry picked from commit
bc59a4398fb264c75e60881b2eda0f71d05048f0)
Björn Jacke [Thu, 29 Jan 2009 19:56:51 +0000 (20:56 +0100)]
add missing semicolons
the fixed configure check led to a missing semicolon in the now activated BSD
code. Then this error was even copypasted into the new AIX code. grrr
(cherry picked from commit
ee90448a7aa0a0972e5801b319a011fd52750c20)
Jeremy Allison [Thu, 29 Jan 2009 18:47:02 +0000 (10:47 -0800)]
Following Björn JACKE's patch, unify the detection of the timespec code in configure.in, and the application of it in time.c
Jeremy.
(cherry picked from commit
9ef86eff7ac41a174dcb8eae070eda24006c6c70)
Björn Jacke [Wed, 28 Jan 2009 23:33:19 +0000 (00:33 +0100)]
add configure check for AIX style sub-second resolution support
(cherry picked from commit
86add869c391ab01a749bda7de09bd909f5da634)
Björn Jacke [Wed, 28 Jan 2009 23:20:00 +0000 (00:20 +0100)]
rather cosmetic fix for failed birthtime configure checks
(cherry picked from commit
39aec29794a2339f37bc431195842aef22bc0504)
Björn Jacke [Wed, 28 Jan 2009 23:17:12 +0000 (00:17 +0100)]
give configure check "sub-second timestamps without struct timespec" a chance to succeed
(cherry picked from commit
2588a540be2a18bc1c023398bfdd783b8b3c2046)
Stefan Metzmacher [Wed, 28 Jan 2009 16:36:36 +0000 (17:36 +0100)]
s3:configure: autodetect ctdb/cluster support
We need to make sure ctdb has transaction support
and we autodetect ipv6 support.
metze
(cherry picked from commit
11163720e6f30e83f523c5009e1e60b5cf28cda6)
(cherry picked from commit
f87f4842cc0ffc62d76ee5350b94f7bda735aa71)
Stefan Metzmacher [Wed, 28 Jan 2009 17:55:13 +0000 (18:55 +0100)]
s3:ctdbd_conn: canonicalize ips before sending them to ctdbd
This makes samba work with older ctdb versions.
metze
(cherry picked from commit
7540d13956a8a69d25f6fbbc4f9a3417e91db1d2)
(cherry picked from commit
a7fcaff295c3a36e2b783398ac212500eef33ecb)