1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

25740 Commits

Author SHA1 Message Date
Günther Deschner
35c96827b4 netapi: make add_GROUP_USERS_INFO_X_buffer non-static.
Guenther
(This used to be commit 87fc15d9b5)
2008-09-11 14:28:19 +02:00
Günther Deschner
93eb9860c6 netapi: fix NetShareEnum_r.
Guenther
(This used to be commit 7e8903b53b)
2008-09-11 14:25:02 +02:00
Günther Deschner
07585d9fb7 netapi: fix NetShareGetInfo_r.
Guenther
(This used to be commit b42408f54e)
2008-09-11 14:24:53 +02:00
Günther Deschner
a780ed8970 net: use netapi for NetShareEnum.
Guenther
(This used to be commit f4cb75b1e2)
2008-09-11 14:21:48 +02:00
Günther Deschner
d323e48abe netapi: fix NetShareEnum_r which in fact enumerates all shares.
Guenther
(This used to be commit 0637ad872e)
2008-09-11 14:21:40 +02:00
Günther Deschner
1a32fbeb86 netapi: fix doxygen warning.
Guenther
(This used to be commit e0312728a5)
2008-09-11 14:21:11 +02:00
Jeremy Allison
5f3160ce27 Fix bug #5052 - not work cancel inheritance on share. We were
using the parent security descriptor type and flags instead
of using the passed in SD.
Jeremy.
(This used to be commit 0d824d7188)
2008-09-10 16:22:51 -07:00
Jeremy Allison
cb40b1ae83 When requesting UNIX info levels on findfirst/findnext, don't play games with write time,
just return what the underlying filesystem says. Trying not to confuse UNIX apps any more than necessary.
Jeremy.
(This used to be commit b81a4dd003)
2008-09-10 14:54:25 -07:00
Jeremy Allison
3978317af0 Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy.
(This used to be commit a59bd0e485)
2008-09-10 10:18:02 -07:00
Kai Blin
5b54781e1c net: share_type is defined in net_rap.c, net_rpc.c needs to use that.
This fixes a crash in net rpc share that Günther Deschner found.
(This used to be commit 50af6d609d)
2008-09-10 12:05:18 +02:00
Volker Lendecke
40b93006c1 Fix some bogus compiler warnings
(This used to be commit 84ed752d9f)
2008-09-10 11:57:10 +02:00
Volker Lendecke
a1d0f59f46 Fix make test on sparc and possibly also on AIX
(This used to be commit 5721205bff)
2008-09-09 22:23:05 +02:00
Jelmer Vernooij
c82f268a1c Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
(This used to be commit c3d1b00975)
2008-09-09 19:27:00 +02:00
Jelmer Vernooij
372ecdfde3 Stop ignoring .svn directories when creating tags, since we no longer use
svn.
(This used to be commit 151c78652a)
2008-09-09 19:05:48 +02:00
Jelmer Vernooij
66060a0ba7 Rename object variables to avoid clashes with Samba 4.
(This used to be commit c77758de5d)
2008-09-09 19:03:49 +02:00
Volker Lendecke
7965249bd6 Convert cli_query_secdesc to the async trans call
(This used to be commit ab41017896)
2008-09-09 17:37:34 +02:00
Volker Lendecke
bb2a7183b9 Convert cli_qfileinfo to the async trans call
(This used to be commit ddc5e77b61)
2008-09-09 17:37:34 +02:00
Volker Lendecke
c81b5fd440 Add async trans/trans2/nttrans calls to libsmb
Logic stolen from Samba4, naturally the specific implementation differs a bit.
(This used to be commit 4b8bc5b03d)
2008-09-09 17:37:34 +02:00
Volker Lendecke
0b31c97e82 Add some debug to reply_nttrans
(This used to be commit 23e9fed28c)
2008-09-09 17:37:34 +02:00
Volker Lendecke
2a93452994 Move setting the mid field in req->outbuf from _cork to _uncork
The async trans calls need this, as for secondary trans calls they have to
modify the MID from what cli_request_chain() gave us.
(This used to be commit c85de4b7b5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6ba8c105c5 Add utility function cli_in_chain()
This gives a hint whether a function is called from within the middle of a
chain. In particular the trans calls don't really like this.
(This used to be commit 4252b32db5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6344b8ec27 make smb_bytes_push_str public
(This used to be commit d611f599b4)
2008-09-09 17:37:34 +02:00
Volker Lendecke
ce47a2b2e3 Add a utility function to append a DATA_BLOB to a talloc object
(This used to be commit d8259cbe66)
2008-09-09 17:37:34 +02:00
Volker Lendecke
7fafa9756a Fix a memleak in cli_qfilename (only used in smbtorture)
(This used to be commit 7e0cca19fe)
2008-09-09 09:54:36 +02:00
Volker Lendecke
d39e9e05ed Fix calculation of useable_space for trans2 and nttrans replies
When alignment was in place, we pretended to send more data/params according to
the param_offset/param_length and data_offset/data_length parameters than would
actually fit into the SMB according to the NBSS length field.
(This used to be commit ef3c132b84)
2008-09-08 23:32:22 +02:00
Volker Lendecke
d4b41079cb When setting an NFSv4 ACL, map generic bits
(This used to be commit dbe7a61be2)
2008-09-08 16:53:54 +02:00
Volker Lendecke
95b366d8e1 Thanks metze for pointing out the missing extern :-)
(This used to be commit b62540cd48)
2008-09-08 16:40:09 +02:00
Stefan Metzmacher
c9fb96146c smbd: some write time fixes
- only the first non truncating write causes
  the write time update with 2 seconds delay.
  It's not enough to check for an existing update event
  as it will be NULL after the event was triggered.

- SMBwrite truncates always update the write time
  unless the sticky write time is set.

- SMBwrite truncates don't trigger a write time update on close.

metze
(This used to be commit 3d17089b6d)
2008-09-08 16:25:41 +02:00
Volker Lendecke
ae02be5287 Remove some duplicate code
(This used to be commit 564bfe94ac)
2008-09-08 16:01:19 +02:00
Günther Deschner
7089c800c1 netapi: expand NetUser testsuite a little.
Guenther
(This used to be commit fc1b04df78)
2008-09-08 10:18:27 +02:00
Günther Deschner
c01d0c0bdf netapi: add NetShare testsuite.
Guenther
(This used to be commit 07cf13e43d)
2008-09-08 10:17:48 +02:00
Günther Deschner
c464969b64 net: use NETSETUP flags consistently.
Guenther
(This used to be commit f48e0cacdf)
2008-09-08 10:17:21 +02:00
Günther Deschner
a828a644d0 netapi: re-arrange a little NetLocalGroupSetMembers example code.
Guenther
(This used to be commit 84a25e6994)
2008-09-08 10:17:06 +02:00
Günther Deschner
9194109e6c netapi: fix NetShareGetInfo example output.
Guenther
(This used to be commit 00ecf8205c)
2008-09-08 10:16:48 +02:00
Jeremy Allison
e76cb70444 Fix debug message to show correct function name.
Jeremy.
(This used to be commit 079c75ef3c)
2008-09-05 20:37:00 -07:00
Jeremy Allison
405b072431 Write times code update.
Ok, here's the fix for the write times breakage
with the new tests in S4 smbtorture.

The key is keeping in the share mode struct
the "old_file_time" as the real write time,
set by all the write and allocation calls,
and the "changed_write_time" as the "sticky"
write time - set by the SET_FILE_TIME calls.

We can set them independently (although I
kept the optimization of not setting the
"old_file_time" is a "changed_write_time"
was already set, as we'll never see it.

This allows us to update the write time
immediately on the SMBwrite truncate case,
SET_END_OF_FILE and SET_ALLOCATION_SIZE calls,
whilst still have the 2 second delay on the
"normal" SMBwrite, SMBwriteX calls.

I think in a subsequent patch I'd like to
change the name of these from "old_file_time"
to "write_time" and "changed_write_time" to
"sticky_write_time" to make this clearer.

I think I also fixed a bug in Metze's original
code in that once a write timestamp had been
set from a "normal" SMBwriteX call the fsp->update_write_time_triggered
variable was set and then never reset - thus
meaning the write timestamp would never get
updated again on subsequent SMBwriteX's.

The new code checks the update_write_time_event
event instead, and doesn't update is there's
an event already scheduled.

Metze especially, please check this over for
your understanding.

Jeremy.
(This used to be commit 6f20585419)
2008-09-05 19:00:48 -07:00
Jeremy Allison
a90ba70cbf Remove unecessary msync.
Jeremy.
(This used to be commit 0bae1ef3de)
2008-09-05 15:32:22 -07:00
Jeremy Allison
beb19da53f Fix "warning: pointer of type 'void *' used in arithmetic".
Jeremy.
(This used to be commit 2d95ea38a2)
2008-09-05 15:20:59 -07:00
Günther Deschner
ce9d896781 Revert "winbindd: the ad trusted_domains call should return talloced strings."
This reverts commit b57cbf62e8.
(This used to be commit b2a3f13e5b)
2008-09-05 23:29:54 +02:00
Qiao Yang
38c287740f Fix a memleak
request.extra_data is not freed if there is no extra_data in response or
when there is some error happens in processing. This patch will free the
buffer right after processing a request before sending back a response.
(This used to be commit be6f12273f)
2008-09-05 14:13:39 +02:00
Günther Deschner
7c74e379a5 re-run make idl.
Guenther
(This used to be commit 2e15036bac)
2008-09-05 13:22:59 +02:00
Günther Deschner
3709e37770 netapi: add SHARE_INFO_1005_FLAGS.
Guenther
(This used to be commit f3044d7653)
2008-09-05 13:22:54 +02:00
Günther Deschner
05449814e9 netapi: implement NetShareSetInfo_r.
Guenther
(This used to be commit ebcd45ed3f)
2008-09-05 13:22:47 +02:00
Günther Deschner
136ddc8f04 netapi: add support for level 1004 in
map_SHARE_INFO_buffer_to_srvsvc_share_info.

Guenther
(This used to be commit f21a934e1e)
2008-09-05 13:22:39 +02:00
Günther Deschner
86df00a388 netapi: add NetShareSetInfo example code.
Guenther
(This used to be commit a7050c999f)
2008-09-05 13:22:31 +02:00
Günther Deschner
09e96f2a98 netapi: add NetShareSetInfo to public header.
Guenther
(This used to be commit 2066ebc5e3)
2008-09-05 13:22:22 +02:00
Günther Deschner
582a48d89c netapi: add skeleton for NetShareSetInfo.
Guenther
(This used to be commit 4d7947e549)
2008-09-05 13:22:14 +02:00
Günther Deschner
f97cb336fc re-run make idl.
Guenther
(This used to be commit 7d863c4b00)
2008-09-05 13:22:07 +02:00
Günther Deschner
e14fa8a2c5 netapi: add NetShareSetInfo to IDL.
Guenther
(This used to be commit 22f3720633)
2008-09-05 13:21:57 +02:00
Günther Deschner
c38546ad9d netapi: implement NetShareEnum_r.
Guenther
(This used to be commit 3fbfbaea00)
2008-09-05 13:21:49 +02:00