Jeff Layton
32695912dd
mount.cifs: use lock/unlock_mtab scheme from util-linux-ng mount prog
...
The util-linux-ng sources have a good, but rather complex scheme for
locking the mtab before updating it. Mount helpers need to follow the
same scheme. Advisory locking only works if everyone is using the same
locking scheme.
Copy the routines we need from util-linux-ng into a separate source file
and then have mount.cifs and umount.cifs link in this object.
The long term goal is to have these routines in a separate helper
library (libmount). Mount helpers can then dynamically link in that lib.
Until that happens, this should serve as a suitable stopgap solution.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2008-11-06 15:07:07 -05:00
Günther Deschner
008ac81b31
s3-rpcclient: add database_redo command.
...
Guenther
2008-11-06 18:51:38 +01:00
Günther Deschner
884c3b301c
s3-build: rerun make samba3-idl.
...
Guenther
2008-11-06 18:51:08 +01:00
Günther Deschner
c353c53692
netlogon: add 8bit varients of netr_SamDatabaseID8Bit and netr_DeltaEnum.
...
Guenther
2008-11-06 18:50:12 +01:00
Jeremy Allison
0db0ce4974
Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a problem found by Boyang. Only the pdb_nds backend implements login attempts so this was broken for tdbsam and ldap.
...
Jeremy.
2008-11-06 06:42:04 -08:00
Günther Deschner
8d69a65110
s3-dsgetdcname: fix reply generation (forgot to map nt1 to nt5ex).
...
Guenther
2008-11-06 13:40:52 +01:00
Jeremy Allison
87f563c230
Start factoring out the inheritance differences.
...
Jeremy.
2008-11-06 01:58:56 -08:00
Jeremy Allison
7522ef15ac
Final fix to make us pass NULL SD test in RAW-ACLs. Not sure if this is 100% right. Only inheritance left to fix.
...
Jeremy.
2008-11-06 01:45:40 -08:00
Jeremy Allison
24c598b1b9
Don't call FSET_NT_ACL on file create if there's no SD to set. Leave the default ACL in place.
...
Jeremy.
2008-11-06 01:40:21 -08:00
Jeremy Allison
4af3c2830a
Only one more issue with NULL ACL test left to solve.
...
Jeremy.
2008-11-06 01:01:01 -08:00
Jeremy Allison
f640135d12
Fix crash in module, get more of the NULL acl test right.
...
Jeremy.
2008-11-06 00:50:56 -08:00
Jeremy Allison
d93041e336
Add reference to bug #4308 to remind me to add regression test to smbtorture.
...
Jeremy.
2008-11-05 19:11:40 -08:00
Günther Deschner
6a3a8f7e16
s3-build: re-run make samba3-idl.
...
Guenther
2008-11-05 15:10:52 +01:00
Günther Deschner
7ac5660d2c
s3-samr-idl: fix samr_QueryUserInfo2.
...
Guenther
2008-11-05 15:10:01 +01:00
Günther Deschner
abd2139b42
s3-samr-idl: fix samr_ValidatePassword.
...
Guenther
2008-11-05 15:09:50 +01:00
Volker Lendecke
b9211deba8
Fix the build
2008-11-05 10:48:43 +01:00
Volker Lendecke
95d1825a51
Fix a const warning
2008-11-04 21:53:14 +01:00
Volker Lendecke
6b4d48c4bf
Convert blocking.c to store a smb_request instead of just inbuf
2008-11-04 20:52:07 +01:00
Volker Lendecke
d5f91d7a08
Simplify logic of cancel_pending_lock_requests_by_fid()
...
The only caller of this function is locking_close_file(). This checks itself if
brl_lock != NULL. The additional check is not necessary here.
2008-11-04 20:52:07 +01:00
Volker Lendecke
3376e7a6a0
Slightly simplify logic in process_lockingX()
...
The "else" is pointless here, we did a "return True" in the if branch.
2008-11-04 20:52:07 +01:00
Volker Lendecke
59e237cae5
Slightly simplify logic in remove_pending_lock_requests_by_mid()
...
Use "continue" for (SVAL(blr->inbuf,smb_mid) != mid)
2008-11-04 20:52:07 +01:00
Volker Lendecke
eddb43c713
Slightly simplify logic in cancel_pending_lock_requests_by_fid()
...
Use a "continue" for (blr->fsp->fnum != fsp->fnum)
2008-11-04 20:52:07 +01:00
Volker Lendecke
f0ba601c26
Convert blocking.c to use talloc
2008-11-04 20:52:06 +01:00
Volker Lendecke
8987641db8
Rewrite aio.c to keep the whole smb_request structure, not just the inbuf
2008-11-04 20:52:06 +01:00
Volker Lendecke
b8125663d9
Make "inbuf" a talloc child of "smb_request" for normal smb requests
...
This is necessary if we want to keep the whole smb_request for deferred ops.
The explicit settings of req->inbuf will be removed once all those deferring
operations are converted to store the whole request and not just the inbuf.
2008-11-04 20:52:06 +01:00
Volker Lendecke
e4897a5376
Add construct_reply_common_req wrapper
...
The goal is to remove the remaining direct calls to construct_reply_common.
2008-11-04 20:52:06 +01:00
Volker Lendecke
d62ff20cd5
Fix nonempty blank lines
2008-11-04 20:52:06 +01:00
Volker Lendecke
71bc6e93a1
Use talloc for struct aio_extra
2008-11-04 20:52:06 +01:00
Joe Smith
d997435f2d
Fixed typo in source/utils/net_rap.c
2008-11-04 20:40:23 +01:00
Günther Deschner
3fa7a1b085
s3-libnet_samsync: print new line in display output.
...
Guenther
2008-11-04 19:55:07 +01:00
Volker Lendecke
37f4c70920
Ignore 3.0 style invalid group mappings during upgrade to ldb
2008-11-04 10:56:24 +01:00
Jeremy Allison
bfc59f63f3
Pass all of RAW-ACLS except for inheritence. Working on that next.
...
Jeremy.
2008-11-04 01:34:08 -08:00
Volker Lendecke
0953688012
Trigger (and fix) a bug in Samba3 making smbd an infinite data source
...
A deferred open directly followed by a ulogoffX makes smbd3 send an infinite
stream of ERRinvuid replies :-(
2008-11-04 09:41:15 +01:00
Jeremy Allison
6a37302b55
Pass the directory versions of the RAW-ACL (still not inheritance). Refactor some common code between open_file_ntcreate() and open_directory().
...
Jeremy.
2008-11-03 23:18:43 -08:00
Jeremy Allison
4f8fac1b8e
Pass all the non-inherited S4 RAW-ACL tests.
...
Jeremy.
2008-11-03 22:42:53 -08:00
Günther Deschner
be5c79cbec
s3-build: re-run make samba3-idl.
...
Guenther
2008-11-04 02:46:41 +01:00
Tim Prouty
2efacde8c4
s3: fix a few "shadows a global declaration" warnings
2008-11-03 14:44:38 -08:00
Stefan Metzmacher
4f25c77924
s3: proto.h: add missing sys_[g|s]et_quota_vfs() prototypes
...
metze
2008-11-03 18:02:03 +01:00
Volker Lendecke
eb9656e757
Fix nonempty blank lines
2008-11-03 17:58:12 +01:00
Volker Lendecke
9a05c277ca
Make a comment match its function definition
2008-11-03 17:58:07 +01:00
Jelmer Vernooij
c5a70cab25
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-11-03 00:15:27 +01:00
Volker Lendecke
7808a2594c
Remove some inbuf references by adding "cmd" to smb_request
2008-11-02 23:17:01 +01:00
Volker Lendecke
792324bf5a
Remove the inbuf reference from map_checkpath_error()
2008-11-02 22:38:03 +01:00
Volker Lendecke
e7607b95f2
Remove a direct inbuf reference in reply_negprot
2008-11-02 22:38:02 +01:00
Michael Adam
17218df567
[s3]winbindd: speed up fill_grent_mem (i.e. winbindd_getgrent) a lot.
...
With large groups, getgrent ran into timeouts because after each
single user that was added to the expanded group list, the list
was sorted and made unique.
Now the list is sorted just once after all members have been added.
Michael
2008-11-02 22:29:17 +01:00
Volker Lendecke
f3e638bc9f
Make a [un]become_root wrap a bit tighter
...
Sooner or later this would bite us.
2008-11-02 21:53:44 +01:00
Volker Lendecke
c2a280ac63
Pass smb_request to send_trans_reply to match with send_[nt]trans[2]_reply
2008-11-02 21:20:41 +01:00
Jelmer Vernooij
3fda6c5c2a
Remove global_loadparm stub in Samba 3 as it's no longer used.
2008-11-02 18:28:06 +01:00
Volker Lendecke
77f52d903f
Use "vwv" in trans parsing
2008-11-02 17:46:08 +01:00
Jelmer Vernooij
b327c0a2da
Samba3: Remove more configure tests already done by libreplace.
2008-11-02 17:39:41 +01:00