1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

30205 Commits

Author SHA1 Message Date
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
Michael Adam
6061b3fa64 packaging(RHEL): add makerpms.git.sh to build rpms from inside a git checkout
This expects a path to a release docs tarball (.tar.bz2) in the DOCS_TARBALL
environment variable. The tarball should have a prefix of "docs/".

Michael
(This used to be commit d87c2192ab)
2008-09-09 10:57:27 +02:00
Michael Adam
8b2ae3ec2b packaging(RHEL): use ccache if available
Michael
(This used to be commit e8abbfabde)
2008-09-09 10:53:27 +02:00
Michael Adam
c7a8ab2ad4 packaging(RHEL): add ldbtools binaries and man pages to common package
Michael
(This used to be commit 206985dfda)
2008-09-09 10:53:27 +02:00
Michael Adam
db5e4a3505 packaging(RHEL): add cifs.upcall binary and manpage to client package
Michael
(This used to be commit f1b80bcb58)
2008-09-09 10:53:27 +02:00
Michael Adam
d2732bf628 packaging(RHEL): fix installation of pam modules.
Michael
(This used to be commit 0f045f18eb)
2008-09-09 10:53:27 +02:00
Michael Adam
a289a65140 packaging(RHEL): remove leftovers of smbmount from SPEC file.
Michael
(This used to be commit 041875c64d)
2008-09-09 10:53:27 +02:00
Michael Adam
38b3b031a4 packaging(RHEL): add new libs (talloc, tdb, ...) to the common package
Michael
(This used to be commit f23183bbec)
2008-09-09 10:53:27 +02:00
Michael Adam
47bb0ca88d packaging(RHEL): remove workaround code for libsmclient/sharemodes installation
With 3.3.0, this is not needed any more
(libdir/modulesdir separation and corrected library creation).

Michael
(This used to be commit 5348e28f66)
2008-09-09 10:53:26 +02:00
Michael Adam
e1ec833770 packaging(RHEL): fix libdir installation by using _libarch/_libarchdir
Michael
(This used to be commit 829f83c27a)
2008-09-09 10:53:26 +02:00
Michael Adam
1db0255b80 packaging(RHEL): remove libmsrpc stuff which is no more...
Michael
(This used to be commit 3eaa33e9df)
2008-09-09 10:53:26 +02:00
Michael Adam
4b93a7fe29 packaging(RHEL): remove duplicate installation of pam_smbpass.so
Michael
(This used to be commit cdc24fbb19)
2008-09-09 10:53:26 +02:00
Michael Adam
e8d02269f2 packaging(RHEL): remove smbmount related stuff from spec file
Michael
(This used to be commit 4420cf6199)
2008-09-09 10:53:26 +02:00
Michael Adam
7f19252030 packaging(RHEL): don't make proto for samba 3.3
Michael
(This used to be commit 75c2869949)
2008-09-09 10:53:26 +02:00
Michael Adam
349f98d174 packaging(RHEL): use --libdir and --with-modulesdir instead of --with-libdir
Michael
(This used to be commit dc6625637f)
2008-09-09 10:53:26 +02:00
Michael Adam
21f927d26f packaging(RHEL): fix version of GPL (2 --> 3)
Michael
(This used to be commit c015e8e0cf)
2008-09-09 10:53:25 +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
Michael Adam
fcc7239e23 packaging(RHEL-CTDB): add fix for versions containing "-" signs.
Michael
(cherry picked from commit 423105e29aaef449dbc40d124900a3f654b7266b)
(This used to be commit 4bebce268a)
2008-09-08 14:43:39 +02:00
Michael Adam
44dd82b9c6 packaging(RHEL-CTDB): extend and slightly reformat comment header block
Michael
(cherry picked from commit 1bfc8cc575cd84f24ceb6f6c5d13c9171c0895a5)
(This used to be commit 5354e42067)
2008-09-08 14:43:39 +02:00
Michael Adam
8f9ddcfdf8 packaging(RHEL-CTDB): unify and extend (C) header
Michael
(cherry picked from commit e051c1cbf7a993e3885c4a515e516da3574a1f57)
(This used to be commit 68ec025d06)
2008-09-08 14:43:38 +02:00
Michael Adam
ebef5a8947 packaging(RHEL-CTDB): autodetect the samba version number from version.h
Generate version.h first.
Create samba.spec from (new) samba.spec.tmpl, replacing PVERSION
by the version string. (as is done with update-pkginfo called
from the create-tarball release script)

Michael
(This used to be commit f1f3d1bef0)
2008-09-08 14:43:38 +02:00
Michael Adam
d4f87ed3b7 packaging(RHEL-CTDB): introduce variable TOPDIR
Michael
(cherry picked from commit 74e335ebf210c4812b0f790d05b697a183803af7)
(This used to be commit c6ff392778)
2008-09-08 14:43:38 +02:00
Michael Adam
a38b80fb06 packaging(RHEL-CTDB): rename SPECDIR to RPMSPECDIR
Michael
(cherry picked from commit ac2b09b2274a12c34c446c4536793a33515958cc)
(This used to be commit cbfd805bd2)
2008-09-08 14:43:38 +02:00
Michael Adam
a9f162d9ec packaging(RHEL-CTDB): rename SRCDIR to RPMSRCDIR
Michael
(cherry picked from commit d8a8ea87439315ecf407a866a12e2993343af39c)
(This used to be commit ab7575f5d2)
2008-09-08 14:43:37 +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