]>
git.ipfire.org Git - thirdparty/samba.git/log
Günther Deschner [Thu, 21 Apr 2011 22:49:54 +0000 (00:49 +0200)]
s3-waf: try to fix the build on sunos5.
Guenther
(cherry picked from commit
0e003515703469e9f66f5119d401366697cdb767 )
(cherry picked from commit
47a442c221024d5b18a61ce1c4c3b6bfd8c2fa6e )
Günther Deschner [Thu, 21 Apr 2011 22:49:28 +0000 (00:49 +0200)]
s3-waf: fix typo in comment.
Guenther
(cherry picked from commit
a505806aa088470c74ad3fbffac223d5400481fc )
(cherry picked from commit
77ecb74ac65fe12b387312f079aa4795076de791 )
Volker Lendecke [Tue, 26 Apr 2011 10:40:07 +0000 (12:40 +0200)]
s3: Fix a typo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Apr 26 13:31:08 CEST 2011 on sn-devel-104
(cherry picked from commit
77ea148f7fca0b3d19fa5d4ec99010bba55c618d )
(cherry picked from commit
218e1fc61d91020faf08cfc9f8b0a9b3e483ebb4 )
Volker Lendecke [Mon, 25 Apr 2011 18:05:31 +0000 (20:05 +0200)]
s3: Allow unlimited parallelism in pthreadpool
(cherry picked from commit
dbc36befb5459cd59ffe2527261886ec962ea941 )
(cherry picked from commit
efc70fd0039302daa97223004d56f8c87f63a0df )
Volker Lendecke [Mon, 25 Apr 2011 16:29:59 +0000 (18:29 +0200)]
s3: Remove unused code
This is done in name_query_send these days
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 19:24:58 CEST 2011 on sn-devel-104
(cherry picked from commit
80c395aef44785497387d8c41eb767efa435bf3e )
(cherry picked from commit
4572b3334f3a24facae6842087ac5cf649a6b0a2 )
Volker Lendecke [Mon, 25 Apr 2011 15:37:08 +0000 (17:37 +0200)]
s3: Move setting the name_query timeout
An async caller might want a different timeout behaviour
(cherry picked from commit
a3d35ac44b53b8a79eac5c927ff771c1c6ceec12 )
(cherry picked from commit
60b221587baeb6ced2ef2bf0559802c3756b1c74 )
Jeremy Allison [Mon, 25 Apr 2011 19:45:49 +0000 (12:45 -0700)]
No longer need to call SMB_VFS_LSTAT - check name hasn't changed above is sufficient.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 25 23:35:37 CEST 2011 on sn-devel-104
(cherry picked from commit
d00f1febd50b4779e8c5588055ee1f601448550c )
(cherry picked from commit
e4f6038fdefafd0e1020782f265843577bd44b53 )
Jeremy Allison [Fri, 22 Apr 2011 05:29:06 +0000 (22:29 -0700)]
Correctly detect and deny symlinks anywhere in a path (not just the last component) if "follow symlinks = no".
(cherry picked from commit
eeb24c17739dd0bccf561b142841a7d2e560cdd0 )
(cherry picked from commit
78623e8ab4cef8e28194260dbb87535402cafd30 )
Jeremy Allison [Mon, 25 Apr 2011 20:12:23 +0000 (13:12 -0700)]
s3-selftest Rename s3 DC environment to s3dc
This should avoid a clash with the s4 DC environment in a future
combined 'make test'.
(cherry picked from commit
2698b40a3d920cfc5bb85333818d98f2fced9d9d )
Andrew Bartlett [Mon, 18 Apr 2011 03:44:36 +0000 (13:44 +1000)]
selftest: put the target on the environment
This will allow us to have a 'switch' target type that creates
environments from Samba3 or Samba4 as required.
Andrew Bartlett
(cherry picked from commit
d041ed233d1b10604ef1b9f7f1e68f6f5cd96132 )
(cherry picked from commit
2df698ffec823938566de0a3c7120d149b57bf0a )
Volker Lendecke [Sun, 24 Apr 2011 08:36:56 +0000 (10:36 +0200)]
s3: Run pthreadpooltest in make test
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 10:39:12 CEST 2011 on sn-devel-104
(cherry picked from commit
422b2fa0d064f2afeeec400223bb8a47deecc4a5 )
(cherry picked from commit
4aba6e44cbd2d3cb3b20d864008971f424d99878 )
Volker Lendecke [Sat, 23 Apr 2011 14:49:04 +0000 (16:49 +0200)]
s3: Add pthreadpooltest to main build
(cherry picked from commit
39375de8354b676904e1fea097a68178acd987e4 )
(cherry picked from commit
37d963684aae4c80c4a3286bb22503592156b630 )
Volker Lendecke [Sun, 24 Apr 2011 08:09:45 +0000 (10:09 +0200)]
s3: pthreadpool_sig_fd->pthreadpool_signal_fd
(cherry picked from commit
f4a0f856f31291dd316a937f8060d2f205e8d4d6 )
(cherry picked from commit
28394b98affe38650c56cf37e110d08c71145f0f )
Volker Lendecke [Sat, 23 Apr 2011 20:25:36 +0000 (22:25 +0200)]
s3: Tiny doc for pthreadpool
(cherry picked from commit
3c405f5e1d81d33a01ab822aeba93634338d5b25 )
(cherry picked from commit
39ab4b06f8fde50489d68a554102fdcea78c1fec )
Volker Lendecke [Fri, 22 Apr 2011 09:47:11 +0000 (11:47 +0200)]
s3: Many pthreadpool fixes
In particular, this makes it fork-safe
(cherry picked from commit
62689d8166b8e070f855e6910470796dd7e1b2c8 )
(cherry picked from commit
2caf8e097cd8f724c7cd93c3f8e1fc3cd095d8ff )
Volker Lendecke [Sat, 23 Apr 2011 08:31:14 +0000 (10:31 +0200)]
s3: Fix Coverity ID 2478, UNINIT
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104
(cherry picked from commit
123e5c1a75a7e6cfe245af05d2954ab126238acf )
(cherry picked from commit
5f21737a7413750622d87f1f71dbd6eec843e882 )
Stefan Metzmacher [Sat, 23 Apr 2011 22:00:40 +0000 (00:00 +0200)]
s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
Most fault codes have a NTSTATUS representation, so use that.
This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
(cherry picked from commit
f7bc84409a7a6736ec2cf1110dd7200a954e3b7e )
(cherry picked from commit
7031faeefc1c9ec5af5fdaee0bcfd3410640ff00 )
Stefan Metzmacher [Sat, 23 Apr 2011 21:57:19 +0000 (23:57 +0200)]
s3:winbindd: let winbindd_lookup_names() use dcerpc_binding_handle functions
metze
(cherry picked from commit
e7cf7204e60552b45952325f343ea894fda21346 )
(cherry picked from commit
f8415f5cefa640a4da513335bc2d00a1bdc30bdf )
Stefan Metzmacher [Sat, 23 Apr 2011 21:56:27 +0000 (23:56 +0200)]
s3:winbindd: let winbindd_lookup_sids() dcerpc_binding_handle functions
metze
(cherry picked from commit
7309daa532c9689d64ce3f33da522f23635213d6 )
(cherry picked from commit
8b9bb30a6cc21152b642a8382cc2876d189cacde )
Stefan Metzmacher [Mon, 25 Apr 2011 15:40:25 +0000 (17:40 +0200)]
docs-xml/smb.conf.5: %i and %I no longer contain IPv4 mapped IPv6 addresses
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 25 18:38:16 CEST 2011 on sn-devel-104
(cherry picked from commit
7269e455a7d4f659777b4ab7db5d8b68376c8d19 )
(cherry picked from commit
632e11fa52cc790e962808e67da36ba0155f53b5 )
Stefan Metzmacher [Sat, 23 Apr 2011 09:29:51 +0000 (11:29 +0200)]
s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)
This avoids getting IPv4 addresses as mapped IPv6 addresses
(e.g. ::ffff:192.168.0.1).
Before the bahavior was inconsistent between operating system
and distributions. Some system have IPV6_ONLY as default.
Now we consistently get AF_INET for IPv4 addresses and AF_INET6
for IPv6 addresses.
It also makes it possible to listen only on IPv6 now
as "::" doesn't imply "0.0.0.0" anymore. Which also
avoids confusing log messages that we were not able to
bind to "0.0.0.0".
metze
(cherry picked from commit
a3a38ee90ab4ab2be68ac71d9c581daa6b9ee189 )
(cherry picked from commit
c4c49be416aeac890628c9a9f2fd7975860884d4 )
Stefan Metzmacher [Sun, 24 Apr 2011 19:20:19 +0000 (21:20 +0200)]
s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug #7383)
metze
(cherry picked from commit
4bfe2d5655d97fbc7e65744425b5a098e77f5ba1 )
(cherry picked from commit
62b2083c627abeb8a2fb7e5adc793c630d0d561c )
Stefan Metzmacher [Sat, 23 Apr 2011 09:01:34 +0000 (11:01 +0200)]
lib/util: add RBVAL, RBVALS, RSBVAL and RSRBVALS macros
They pull and push [u]int64_t values in big endian.
metze
(cherry picked from commit
c0441b17e6580de65d87d28bfd9ae72d09a3508f )
(cherry picked from commit
79c65e434283f41a1739cdbc132f0e78010b0b47 )
Stefan Metzmacher [Sat, 23 Apr 2011 09:15:30 +0000 (11:15 +0200)]
s3:includes: simplify INO_T_VAL macros
metze
(cherry picked from commit
5b327085775f279976c66cdd5f105132fda0965a )
(cherry picked from commit
0ef0fd81ba863379f28e1bde2808fc48fbe38d4b )
Stefan Metzmacher [Sat, 23 Apr 2011 09:10:05 +0000 (11:10 +0200)]
s3:includes: simplify BIG_UINT macros
metze
(cherry picked from commit
d7aa2eb7b664c10551cb45c36d3b564d829e9d44 )
(cherry picked from commit
90edf53dd5d3768ad97748cca90cb177709223dd )
Stefan Metzmacher [Sat, 23 Apr 2011 08:30:59 +0000 (10:30 +0200)]
s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...
metze
(cherry picked from commit
9127e555ab043000adc516a9177e43812e52fd4b )
(cherry picked from commit
3a9f8ec79c8a80430df81d97833f9c2816cfaef6 )
Stefan Metzmacher [Sat, 23 Apr 2011 08:17:27 +0000 (10:17 +0200)]
s3:include/vfs.h: remove very old hints for vfs modules with interface version < 8
The interface version is at 28 now, and this defines cause problem
on some systems, e.g. Tru64 defines vfs_init in the system headers.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Apr 23 12:07:35 CEST 2011 on sn-devel-104
(cherry picked from commit
64e7fba1be0d2897c5cee40b41f869bd9e5b272a )
(cherry picked from commit
b82b990e30fe54d2733c4eb58e6e184c99a1acfe )
Stefan Metzmacher [Sat, 23 Apr 2011 08:30:59 +0000 (10:30 +0200)]
s3:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...
metze
(cherry picked from commit
4a4a774e61aa5d95fa4c90485c538629ce5d0c92 )
(cherry picked from commit
ae132446595bf6af167d32c32430e8dceecc94a0 )
Stefan Metzmacher [Sat, 23 Apr 2011 08:27:37 +0000 (10:27 +0200)]
s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...
metze
(cherry picked from commit
5186209277e0fec5c9f0c4df2ac57a5e16f74470 )
(cherry picked from commit
005ec263ac515bf76915a3364bd89d9ccf172107 )
Stefan Metzmacher [Sat, 23 Apr 2011 08:22:32 +0000 (10:22 +0200)]
s3:libsmb: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...
metze
(cherry picked from commit
75ad18037955b1e787e48648a09b0016b1cdce8f )
(cherry picked from commit
9e944049ea2b1cf6f7aed2e3b6319bb5138a5b65 )
Karolin Seeger [Mon, 25 Apr 2011 17:31:32 +0000 (19:31 +0200)]
WHATSNEW: Update changes since pre2.
Karolin
(cherry picked from commit
6c08f12699e8c527c26dae042e74d0453ebb6bf5 )
Karolin Seeger [Mon, 25 Apr 2011 17:22:44 +0000 (19:22 +0200)]
WHATSNEW: Add changes since pre2.
Karolin
(cherry picked from commit
423bad15899fb28bb7fa3ed4e02718cc478e29d1 )
Volker Lendecke [Sun, 17 Apr 2011 18:16:07 +0000 (20:16 +0200)]
s3: Add a 10-second timeout for the 445 or netbios connection to a DC
(cherry picked from commit
23a6af46c84cd9b738af403d80c5187d858eac03 )
(cherry picked from commit
6be972bd5b55c29f3a3a1ebcbee654a2ece020b6 )
Volker Lendecke [Fri, 22 Apr 2011 08:05:42 +0000 (10:05 +0200)]
s3: Fix Coverity ID 2047, UNUSED_VALUE
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 22 10:53:24 CEST 2011 on sn-devel-104
(cherry picked from commit
b48e22347d9b2d0b3b128197b4ef662558b0f2e9 )
(cherry picked from commit
045895d9e23edc6aa47f90eefe92799c80f746a3 )
Volker Lendecke [Fri, 22 Apr 2011 07:51:42 +0000 (09:51 +0200)]
s3: Fix Coverity ID 2325, RESOURCE_LEAK
(cherry picked from commit
726fa732facef55da6a27750f9daf12145db6639 )
(cherry picked from commit
fab8a81963897659814b339254f2409292272a5d )
Volker Lendecke [Fri, 22 Apr 2011 07:48:10 +0000 (09:48 +0200)]
s3: Fix Coverity ID 2336, NULL_RETURNS
(cherry picked from commit
f9e3af71d391027de353f0240f70e425e766c0e5 )
(cherry picked from commit
ec2513cc5baa1aafc173887a7dec45660506cf35 )
Volker Lendecke [Fri, 22 Apr 2011 07:45:54 +0000 (09:45 +0200)]
s3: Fix Coverity ID 2335, CHECKED_RETURN
(cherry picked from commit
018595e2587b5b5dd90bf318a1cf8b675e47b66b )
(cherry picked from commit
13d72e42e17c05c63670ce102981e9f8dd038290 )
Volker Lendecke [Fri, 22 Apr 2011 07:41:52 +0000 (09:41 +0200)]
asn1: Fix Coverity ID 2299, CHECKED_RETURN
(cherry picked from commit
4981adcca37391b6745f10f5849fedd7c944410d )
(cherry picked from commit
ec3ca4ba431fdccfb3fdd3ddf13189158db8ab62 )
Volker Lendecke [Fri, 22 Apr 2011 07:39:37 +0000 (09:39 +0200)]
s3: Fix Coverity ID 2307, NULL_RETURNS
(cherry picked from commit
3e8a8fad59cfdd053ad96afc39ea7d6e98b91764 )
(cherry picked from commit
135cb711f0b052c37595f64e1859606c8d0e58b2 )
Volker Lendecke [Fri, 22 Apr 2011 07:34:35 +0000 (09:34 +0200)]
s3: Fix Coverity ID 986, BUFFER_SIZE_WARNING
strncpy can leave the destination unterminated
(cherry picked from commit
9a0676d5c947033ac41f700be9ba92ab1666814e )
(cherry picked from commit
e3c271560adfab50568e06c7bfaba02cb5aae997 )
Volker Lendecke [Thu, 21 Apr 2011 20:09:27 +0000 (22:09 +0200)]
s3: Fix Coverity ID 1340, NULL_RETURNS
(cherry picked from commit
7e7ad53cbd77ce2201fd46bd2c08a601725f9f5b )
(cherry picked from commit
139336bd8b58cea93c82f7da9c100d6cccfe5180 )
Jeremy Allison [Fri, 22 Apr 2011 00:25:13 +0000 (17:25 -0700)]
Cosmetic. Fix bad indentation.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104
(cherry picked from commit
e919e767fb846fc91160cf44cbc838a9b4f2a832 )
(cherry picked from commit
67636bb27c75fb291a8adf36c6da0903fea3a8e9 )
Jeremy Allison [Fri, 22 Apr 2011 00:22:44 +0000 (17:22 -0700)]
Fix compiler warning in debug message.
(cherry picked from commit
644046f064d73ff97f95a7dfbc5fca199f0dd973 )
(cherry picked from commit
5adbcb5b293effd7cf26fd38f1cde821671b2085 )
Jeremy Allison [Thu, 21 Apr 2011 23:50:49 +0000 (16:50 -0700)]
Remove duplicate code - move to parent_dirname() as a common function.
(cherry picked from commit
20baa11f33c5282c609258e21a07c7255df7ae30 )
(cherry picked from commit
42b2f84837f3978b0c24f3374dd876e7d7d84de7 )
Günther Deschner [Wed, 20 Apr 2011 20:55:25 +0000 (22:55 +0200)]
s3-vfs: rename open function to open_fn.
This should finally fix the AIX build and allow to remove AIX specific ifdefs.
Guenther
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104
(cherry picked from commit
c7073f8b545976719bfdba7b7bbd460d595041d5 )
(cherry picked from commit
02770631597d489851e52521a3f438533d18055e )
Günther Deschner [Wed, 20 Apr 2011 16:21:25 +0000 (18:21 +0200)]
s3-build: move MAP_FILE define to the only place used.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 20 19:16:47 CEST 2011 on sn-devel-104
(cherry picked from commit
0b89ce671250daddc86400ef4e1996c37c126025 )
(cherry picked from commit
c65b54c8ee1b9c1982eb81a1d7fa43ae46c0a378 )
Günther Deschner [Wed, 20 Apr 2011 15:53:43 +0000 (17:53 +0200)]
s4-smbtorture: restructure documentname handling in spoolss test a bit.
Guenther
(cherry picked from commit
c8f9515f193e634da2ef01c525e2a05a3d519862 )
(cherry picked from commit
bb88fdade421b0226805d32c448fa1be9eb7faa5 )
Günther Deschner [Wed, 20 Apr 2011 15:19:15 +0000 (17:19 +0200)]
s3-spoolss: fix debug statement in spoolss_addprinterex_level_2().
Guenther
(cherry picked from commit
0cf9b47725b50fd916a7ca56ca3f7e9c9263411a )
(cherry picked from commit
3d14ed92bb698a5f0f33c10f65cc840b330bb65c )
Günther Deschner [Wed, 20 Apr 2011 15:54:24 +0000 (17:54 +0200)]
s3-smbd: fix the AIX 5.3 build.
(AIX defines open to be open64)
Guenther
(cherry picked from commit
ae61a5c3d05192457f5a0b24dd9bd34317df566f )
(cherry picked from commit
317b5d8fad7320f186c71b64d4d0470be634c71d )
Simo Sorce [Sun, 10 Apr 2011 02:21:35 +0000 (22:21 -0400)]
tdb_backup: avoid transaction on backup file, use lockall
Transactions have the side effect of generating bigger files.
By removing the transaction files get as much as 30% smaller.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Apr 19 23:34:37 CEST 2011 on sn-devel-104
(cherry picked from commit
1804d9a64662d37f6c7c50bdd7b8edd80f42192b )
(cherry picked from commit
9953e698611defdd6919883a965bdfc12ce51bd5 )
Sergey Korsak [Mon, 18 Apr 2011 12:48:47 +0000 (14:48 +0200)]
Fix Bug #8099 setpwent() actually does endpwent() and vice versa on FreeBSD
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 19 19:15:14 CEST 2011 on sn-devel-104
(cherry picked from commit
9bf3dc3ca796f2b90acf7e21b0eefdce444147e1 )
(cherry picked from commit
77b0bcca87114a51c273e98a1e5776da69024aa6 )
Rusty Russell [Tue, 19 Apr 2011 11:30:59 +0000 (21:00 +0930)]
tdb: make sure we skip over recovery area correctly.
If it's really the recovery area, we can trust the rec_len field, and
don't have to go groping for bitpatterns.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Apr 19 14:15:22 CEST 2011 on sn-devel-104
(cherry picked from commit
36cfa7b79e36d880cdbf24d0769558be44d0edda )
(cherry picked from commit
261264325e5e1e71e114a26d4e1daa33e5c2e80d )
Simo Sorce [Mon, 18 Apr 2011 12:45:11 +0000 (22:15 +0930)]
tdb_expand: limit the expansion with huge records
ldb can create huge records when saving indexes.
Limit the tdb expansion to avoid consuming a lot of memory for
no good reason if the record being saved is huge.
(cherry picked from commit
cb884186a55c9ef8aca6ee48b16423b3c881e689 )
(cherry picked from commit
84a264a6f05675302b79eaf3da1edb45697836a6 )
Rusty Russell [Mon, 18 Apr 2011 12:45:11 +0000 (22:15 +0930)]
tdb: tdb_repack() only when it's worthwhile.
tdb_repack() is expensive and consumes memory, so we can spend some
effort to see if it's worthwhile. In particular, tdbbackup doesn't
need to repack: it started with an empty database!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit
094ab60053bcc0bc3542af8144e394d83270053e )
(cherry picked from commit
51761dbcb07f98168ede2fc54be633d4ecee69a2 )
Rusty Russell [Mon, 18 Apr 2011 12:45:11 +0000 (22:15 +0930)]
tdb: fix transaction recovery area for converted tdbs.
This is why macros are dangerous; these were converting the pointers, not the
things pointed to!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit
6aa72dae8fc341de5b497f831ded1f8f519fa8fb )
(cherry picked from commit
59cccbf09e53b457bc400edd371e092ed8259acb )
Jeremy Allison [Mon, 18 Apr 2011 21:32:11 +0000 (14:32 -0700)]
Fix bug 8088 - rpccli_samr_chng_pswd_auth_crap segfaults if any input blobs are null.
Correct fix - ensure we have enough length, and correctly null out
passed in structs if not.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 19 00:17:08 CEST 2011 on sn-devel-104
(cherry picked from commit
bde2bcc8efd735d08b55ac3083d7b0f6490100d0 )
(cherry picked from commit
19af6216877577b11f97e132faebcfe1c15a3f7d )
Günther Deschner [Fri, 15 Apr 2011 10:39:15 +0000 (12:39 +0200)]
s3-build: fix the --with-profiling-data build on mac os x.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 15 13:33:43 CEST 2011 on sn-devel-104
(cherry picked from commit
0e18a59ed0aa48a8a9dee856faf05c1ad624e264 )
(cherry picked from commit
7299c198268530d40c282c20b230be629e961fdd )
Kai Blin [Mon, 18 Apr 2011 12:55:51 +0000 (14:55 +0200)]
s3 waf: Mimic the autoconf check for netgrent
The autoconf check for netgrent headers makes sure that the compiler flag used
(-Werror-implicit-function-declaration) is recognized by the compiler before
using it for the test. Mimic this behaviour in the waf checks.
Thanks to gd for noticing this.
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Apr 18 16:24:15 CEST 2011 on sn-devel-104
(cherry picked from commit
c2a62e854632dcae69a5ae911b6ab11e272d0a81 )
(cherry picked from commit
2789b8bf8027d2a3ce6a588b8f005e8e9536ba30 )
Kai Blin [Mon, 18 Apr 2011 12:48:47 +0000 (14:48 +0200)]
s3 autobuild: Fix CFLAG check for netgrent tests
In
45ac8ffd I accidently added the wrong flag check. Fix this.
Thanks to gd for noticing.
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
d09f02909f6adae1d68264bd3790c77fcee5e80d )
(cherry picked from commit
e9b9e6bdd9d5663f04f31edf465d67aec0d0c500 )
Volker Lendecke [Thu, 14 Apr 2011 09:06:00 +0000 (11:06 +0200)]
s3: Fix a typo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Apr 14 11:55:56 CEST 2011 on sn-devel-104
(cherry picked from commit
15d6c7070770b3146c510996ab24afbdf8034ee8 )
(cherry picked from commit
7abd8b7b865cab12504ea337c1bbd3c4ee9e0c05 )
Volker Lendecke [Sat, 16 Apr 2011 13:27:53 +0000 (15:27 +0200)]
s3: Remove an unused variable
(cherry picked from commit
35c71231accaa2f24a70f4066b967fa4999428f1 )
(cherry picked from commit
3eb3a4f733b5a042f0ad5e0bcc59d2db011e7c73 )
Volker Lendecke [Sat, 2 Apr 2011 14:02:23 +0000 (16:02 +0200)]
s3: Use tevent_req_nterror properly in a few places
(cherry picked from commit
10a552a9570bd274796639ba80d46d2d22828271 )
(cherry picked from commit
8894994b61dd8701806daae123bc615f5ee47390 )
Volker Lendecke [Sat, 2 Apr 2011 21:53:27 +0000 (23:53 +0200)]
s3: guest sesssetup is only 13 words
(cherry picked from commit
69650a2aaa8649570261df7efccb35ad76d7cfc1 )
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 16 16:20:08 CEST 2011 on sn-devel-104
(cherry picked from commit
ca5dcf241289fb3489bf9da9ea5dfd1de0a67fab )
(cherry picked from commit
269af1a75eeb89f7fb9eb4eaa8291c9f8d58e108 )
Volker Lendecke [Sun, 17 Apr 2011 09:32:28 +0000 (11:32 +0200)]
s3: Use \0 instead of NULL when 0-terminating a string
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
(cherry picked from commit
0bf7c9646413673e24cfea94eb74dce88f79c470 )
(cherry picked from commit
3038237d1674013d523897c342e39b90c3ffe9cd )
Jeremy Allison [Fri, 15 Apr 2011 23:30:17 +0000 (16:30 -0700)]
Trying to track down the SMB2 error. Add an invariant test.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr 16 02:15:38 CEST 2011 on sn-devel-104
(cherry picked from commit
82fdad8a4c1e45d171a75b133eff8f9768edd682 )
(cherry picked from commit
e55baa472e0deac16c5f3951420e18ef4216ac43 )
Volker Lendecke [Mon, 18 Apr 2011 11:53:51 +0000 (13:53 +0200)]
s3: Fix the build of vfs_gpfs.c
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 18 14:40:07 CEST 2011 on sn-devel-104
(cherry picked from commit
83a0b94cf8c3a1a96d6060c21f0c93dfb67640d8 )
(cherry picked from commit
ca44693196a97f53a1e84f2a4dfc7ce214663f25 )
Jeremy Allison [Fri, 15 Apr 2011 17:49:34 +0000 (10:49 -0700)]
Use handle based xattr set if available.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 15 22:11:12 CEST 2011 on sn-devel-104
(cherry picked from commit
e49893c68ef29f71ac6301f3955a7404e9c6daba )
(cherry picked from commit
c903dac2eb28c9807d6f42a499d7895054c52529 )
Jeremy Allison [Fri, 15 Apr 2011 19:21:39 +0000 (12:21 -0700)]
Ensure vfs_chown_fsp() is safe against races.
(cherry picked from commit
525ccd589ede79e97e83699629a1d98538855803 )
(cherry picked from commit
525afe18d46e4e874d2eea3339505aede5d1ba69 )
Volker Lendecke [Thu, 7 Apr 2011 20:03:49 +0000 (22:03 +0200)]
s3: Fix bug 8066, wrong output in smbget
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 15 09:32:55 CEST 2011 on sn-devel-104
(cherry picked from commit
53f50c2268122e648a09e4b0643cd29fcc7a4bfd )
(cherry picked from commit
bb47e2b46de1974c05fd555528c1ca31c090a651 )
Jeremy Allison [Thu, 14 Apr 2011 20:56:05 +0000 (13:56 -0700)]
Ensure change_dir_owner_to_parent() can't be raced.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 14 23:39:55 CEST 2011 on sn-devel-104
(cherry picked from commit
4389bf4bc94eefe034e7551371e6e43cca8d8bdb )
(cherry picked from commit
72c9b37d4c882838734aa48ad44eedbe32f6c606 )
Jeremy Allison [Thu, 14 Apr 2011 20:20:08 +0000 (13:20 -0700)]
Fix bug #8083 - "inherit owner = yes" doesn't interact correctly with vfs_acl_xattr or vfs_acl_tdb module.
If "inherit owner = yes", pass in the directory owner and group
owner as the target for CREATOR_OWNER and CREATOR_GROUP substitutions,
and also as the owner and primary group of the new security descriptor
being applied to the object.
Jeremy.
(cherry picked from commit
182eea9ae26804d7f4eedcfa09eef0342ec3db5a )
(cherry picked from commit
86364679519c225eb262945f6fb5aa73fa382bd8 )
Jeremy Allison [Thu, 14 Apr 2011 19:49:58 +0000 (12:49 -0700)]
Optimization for change_file_owner_to_parent() and change_dir_owner_to_parent()
Don't do the chown if the owner is already correct.
(cherry picked from commit
9c2ba9436d1abe66c493a512702101f631946cdf )
(cherry picked from commit
232e35b48cce6619e409ed07cd367cedd34624c3 )
Volker Lendecke [Tue, 12 Apr 2011 08:48:03 +0000 (10:48 +0200)]
s3: Fix Coverity ID 2471: UNINIT
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 16:22:58 CEST 2011 on sn-devel-104
(cherry picked from commit
d9c1d1f709ba49e57762456e529e283825a4fd7a )
(cherry picked from commit
f8607bdd1ec8b77c7ff749ac886480ac5659c0fb )
Volker Lendecke [Thu, 14 Apr 2011 12:05:43 +0000 (14:05 +0200)]
s3: Fix smbd with the async echo responder
We need to read from the echo socket, pass the socket to read
from down to the read routines
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Apr 14 15:34:36 CEST 2011 on sn-devel-104
(cherry picked from commit
8b5d163d89651764981521178bc00352397f10f3 )
(cherry picked from commit
dc85e87977d48ed1b8287d13aa6256ccb13a2613 )
Günther Deschner [Thu, 14 Apr 2011 09:43:31 +0000 (11:43 +0200)]
s3-build: make sure we pick up system tdb and talloc via #include.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 12:56:28 CEST 2011 on sn-devel-104
(cherry picked from commit
7ece43b15e11ccff6181266d53c88c14271167c2 )
(cherry picked from commit
b206ba95a15000a6973dfb992f3c7d8c06c58828 )
Günther Deschner [Wed, 13 Apr 2011 22:52:45 +0000 (00:52 +0200)]
s3-includes: move readahead prototype to its only user.
Guenther
(cherry picked from commit
daea6a4b8cf48c96718d6f757d01c430d1811446 )
(cherry picked from commit
1fee51dc6daea2b13cc71bc6ebb9eb378277f944 )
Günther Deschner [Wed, 13 Apr 2011 22:36:23 +0000 (00:36 +0200)]
s3: only include smb profiling where needed.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
(cherry picked from commit
165521e20d8aea1e35cc68e39ced57de64f8e560 )
(cherry picked from commit
3b913b9f5d9d70e0fbe9004167e6e170a8a07ec1 )
Günther Deschner [Wed, 13 Apr 2011 22:17:29 +0000 (00:17 +0200)]
s3-waf: add --with-profiling-data configure option.
Guenther
(cherry picked from commit
1b4d27d45a55c66ed20de64c2fe299583a710ddd )
(cherry picked from commit
155db1d43c5d4280f8e8e6a313bd2b7e43a09f33 )
Günther Deschner [Wed, 13 Apr 2011 22:04:08 +0000 (00:04 +0200)]
s3: fix the build of --with-profiling-data.
Guenther
(cherry picked from commit
bae2ce805478099c1f436e42cd2f47b3ca0caefd )
(cherry picked from commit
32fadd25cc9a34d18b6074725de69a71e767250a )
Günther Deschner [Wed, 13 Apr 2011 21:48:33 +0000 (23:48 +0200)]
s3-includes: only include acl prototypes when needed.
Guenther
(cherry picked from commit
321587e44a337e8c47ed3a3c22dd1243d06d8a26 )
(cherry picked from commit
4769d7a278a2ca7f6e84b2c54e031b5b42ca552b )
Günther Deschner [Wed, 13 Apr 2011 21:34:51 +0000 (23:34 +0200)]
s3-includes: absolutely no need to globally include debugparse.h
Guenther
(cherry picked from commit
c4331f6fcfa68822193a7ac9697d14bf8e0cde3b )
(cherry picked from commit
b5e484a2013a2c461912c253626db0fbd2fc8b56 )
Günther Deschner [Wed, 13 Apr 2011 21:34:25 +0000 (23:34 +0200)]
s3-includes: include lib/util/debug.h headers in includes.h not smb.h
Guenther
(cherry picked from commit
b4e4b60719061a04f8b21a6fd9212f1411e6a3f6 )
(cherry picked from commit
dac9b1d86bcfd17a733130ee19994a2ef9276253 )
Günther Deschner [Wed, 13 Apr 2011 21:33:49 +0000 (23:33 +0200)]
s3-includes: remove unused schema_types enum.
Guenther
(cherry picked from commit
76d4ede6db5479c4d1436f249ddfeb355762ebc5 )
(cherry picked from commit
f44238926ab907e7dc75b2179d4931d9bba281dc )
Günther Deschner [Wed, 13 Apr 2011 21:03:56 +0000 (23:03 +0200)]
s3-includes: move struct pipe_open_rec to srvsvc rpc server.
Guenther
(cherry picked from commit
e7821116d12b94635e7a1709f60809264d397025 )
(cherry picked from commit
f37da62a177bd94176d072791d8cd324afce7ca1 )
Günther Deschner [Wed, 13 Apr 2011 12:32:55 +0000 (14:32 +0200)]
s3-build: finally remove references to ndr and dcerpc headers that were included globally.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 13 23:07:05 CEST 2011 on sn-devel-104
(cherry picked from commit
c3d89911642a9d6bbcba9e51fa93e5254cd7b2fc )
(cherry picked from commit
d5fa93310f07370cb0c4f3b450b8d264b13ebf94 )
Günther Deschner [Wed, 13 Apr 2011 12:32:16 +0000 (14:32 +0200)]
s3-rpc_client: add and use rpc_client/rpc_client.h.
Guenther
(cherry picked from commit
9824e2e5ee336aa6c72fb121935f364f3d8fea6e )
(cherry picked from commit
d029d1150189a0eacc111d5e4660a205d7a3dd31 )
Günther Deschner [Wed, 13 Apr 2011 11:33:30 +0000 (13:33 +0200)]
s3-netapi: remove two shadowed variables.
Guenther
(cherry picked from commit
d2d976d8351c4bf7557a7bd8509db4a644de913d )
(cherry picked from commit
99e7b53771cc66750f1c1c20c5d591ba7ee2f435 )
Jeremy Allison [Wed, 13 Apr 2011 21:53:26 +0000 (14:53 -0700)]
Fix WAF build for sids2xids.
(cherry picked from commit
f0bfd05517f682743175a9a9c043f679a26804ce )
Volker Lendecke [Mon, 11 Apr 2011 15:26:35 +0000 (17:26 +0200)]
s3: Add a test for sid2xids
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
50ce453d2d51ab865964a0603e1da80a3f15dbf6 )
Volker Lendecke [Tue, 12 Apr 2011 11:32:20 +0000 (13:32 +0200)]
s3: Add some debug to winbindd_sids_to_xids
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
ba00567fb07152125a5c96762d00f65f3aa30d18 )
Volker Lendecke [Wed, 23 Mar 2011 17:31:38 +0000 (18:31 +0100)]
s3: Use wbcSidsToUnixIds in create_local_token
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
b82f664ff25c69071aa9df8776c6dd1802cdfde5 )
Volker Lendecke [Wed, 23 Mar 2011 17:31:17 +0000 (18:31 +0100)]
nsswitch: Add wbinfo --sids-to-unix-ids
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
813086f7085c46ac8533a999bd7956a9144dd3af )
Volker Lendecke [Wed, 23 Mar 2011 17:30:32 +0000 (18:30 +0100)]
libwbclient: Add wbcSidsToUnixIds
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
9d19ddd88c787323cd87463dbe02ac1098c1da79 )
Volker Lendecke [Wed, 23 Mar 2011 17:29:45 +0000 (18:29 +0100)]
s3: Export WINBINDD_SIDS_TO_XIDS via the winbind pipe
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
d6d33b7a5fcedb315bc3248a294402e804a8474c )
Volker Lendecke [Wed, 23 Mar 2011 17:18:13 +0000 (18:18 +0100)]
s3: Add wbint_Sids2UnixIDs idl & implementation
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
fbdb9c26b9d271e5ec1fa9f14b2eb2665c9b355c )
Volker Lendecke [Wed, 23 Mar 2011 17:15:34 +0000 (18:15 +0100)]
s3: Make idmap_find_domain public
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
a1b061e4002075177bb52f55c256551793777c9c )
Volker Lendecke [Tue, 22 Mar 2011 15:37:41 +0000 (16:37 +0100)]
s3: Add is_domain_online
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
6430e41a1a86bb14a5c7558813659c7605e6fcea )
Volker Lendecke [Wed, 9 Mar 2011 15:36:20 +0000 (16:36 +0100)]
nsswitch: wbinfo --lookup-sids
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
ffe63d9346bab939bafd04400fc94b3803247b36 )
Volker Lendecke [Wed, 9 Mar 2011 15:34:49 +0000 (16:34 +0100)]
lib: Move next_token next to next_token_talloc
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
c932faed8a61053fcfb63bc9915baa4bfa2678d4 )
Volker Lendecke [Tue, 8 Mar 2011 17:01:21 +0000 (18:01 +0100)]
libwbclient: Add wbcLookupSids
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
0b192c0a53966d823e0e6cf8c2ce3e489f58ff34 )