1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

29544 Commits

Author SHA1 Message Date
Volker Lendecke
9b5adeaa39 Remove unused extern struct current_user from substitute.c
A bit hard to believe, but substitute.c does not use current_user anymore.
(This used to be commit de5d27d70a)
2008-07-27 00:22:30 +02:00
Volker Lendecke
b3f04dd32f Save 128 byte (32-bit platform) or 256 byte (64-bit) per connection_struct
This was just too easy not to use :-)
(This used to be commit a9922a2a36)
2008-07-26 16:52:02 +02:00
Volker Lendecke
33cbe2f88c make read/write to internal pipes available externally
(This used to be commit e11b5cb1e0)
2008-07-26 13:20:10 +02:00
Volker Lendecke
a803f0a920 Refactoring: Make close_internal_rpc_pipe_hnd a talloc destructor
(This used to be commit 10b47a0c2c)
2008-07-26 13:20:10 +02:00
Volker Lendecke
1ee37bc9c3 Refactor make_internal_rpc_pipe_p: connection_struct is not needed
(This used to be commit defcf0eecf)
2008-07-26 13:20:10 +02:00
Volker Lendecke
bdf1747c98 Create doxygen comments for async_req.[ch]
(This used to be commit 1dab45b16a)
2008-07-26 12:59:41 +02:00
Volker Lendecke
042600cbac Make api_rpcTNP static to srv_pipe.c
(This used to be commit 256c93a8b3)
2008-07-26 11:25:24 +02:00
Volker Lendecke
0fdffbc959 Fix an incompatible pointer warning
(cherry picked from commit 3282f7289b)
(This used to be commit fc86414439)
2008-07-25 23:35:00 +02:00
Jeremy Allison
ee49e0391f Fix bug creating files using DOS clients with mixed
case files. Reported by Daniel Johnson <Progman2000@usa.net>.
The smb_set_file_time() call to set the filetimes is failing
because it's using the unmodified name passed in by the
client, not the modified name (matching case on the
disk) that comes out from create_file().
Jeremy.
(This used to be commit 1706a33e78)
2008-07-25 13:16:18 -07:00
Volker Lendecke
0f9c30c114 Fix a race condition in winbind leading to a crash
When SIGCHLD handling is delayed for some reason, sending a request to a child
can fail early because the child has died already. In this case
async_main_request_sent() directly called the continuation function without
properly removing the malfunctioning child process and the requests in the
queue. The next request would then crash in the DLIST_ADD_END() in
async_request() because the request pending for the child had been
talloc_free()'ed and yet still was referenced in the list.

This one is *old*...

Volker
(cherry picked from commit 8691709626)
(This used to be commit c70e2b6476)
2008-07-25 12:12:49 +02:00
Karolin Seeger
933fdd4017 talloc_string_sub2: Don't return NULL if src is empty.
This fixes BUG #5635.

Finished print jobs were not removed from the $PRINTER.tdb file if
"printing=cups".

In print_queue_update, talloc_string_sub2 is used to assemble the
"lprm command". In the case of using "printing=cups", the default
"lprm command" is an empty string. talloc_string_sub2 is called with
this empty string and returns NULL which leads to exiting
print_queue_update without doing the actual print queue update.

Signed-off by Michael Adam <obnox@samba.org>
(This used to be commit 03d66554d1)
2008-07-25 09:53:26 +02:00
Jeremy Allison
f9223a7139 If we're not allowing streams on this conn ptr,
then don't allow create_file() to call down to
create_file_unixpath() with a stream name.
Jeremy.
(This used to be commit 167d611b52)
2008-07-24 18:12:12 -07:00
Andreas Schneider
4cdc6b3b23 Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(This used to be commit 12848e8eb9)
2008-07-24 13:41:37 -07:00
Jeremy Allison
61859a18f0 Add casts to uint32_t to match prototype for sid_append_rid().
Jeremy.
(This used to be commit 1500401967)
2008-07-24 12:01:46 -07:00
Jeremy Allison
a4932d6657 Use sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy.
(This used to be commit 43eec65170)
2008-07-24 11:56:49 -07:00
Steve French
890361db59 Merge branch 'v3-3-test' of git+ssh://sfrench@git.samba.org/data/git/samba into v33
(This used to be commit 22afe367fe)
2008-07-24 09:35:20 -05:00
Steve French
0732750497 cifs.upcall was not recognizing the newer name "dns_resolver" key type
(as a synonym for the older "cifs.resolver" name) when resolving host
names to ip addresses for the kernel.

Acked-by: Jeff Layton
(This used to be commit 22c36b27c6)
2008-07-24 09:32:53 -05:00
Volker Lendecke
8ea3ce5342 Remove unused request_finished_cont()
(This used to be commit 865ea6fcbc)
2008-07-24 15:01:04 +02:00
Volker Lendecke
d7b87cdce2 Make use of TALLOC_FREE when freeing the per-winbindrequest memory context
(This used to be commit 9e49d390f7)
2008-07-24 14:50:22 +02:00
John H Terpstra
b39237d3b3 pdb_ldap: Raise level for debug message to avoid log file flooding.
(This used to be commit 9b863a10da)
2008-07-24 09:49:28 +02:00
Michael Adam
24d748cf34 re-run "make idl" after adding idl for idl for Primary:Kerberos-Newer-Keys
Michael
(This used to be commit d78667c885)
2008-07-23 23:10:34 +02:00
Stefan Metzmacher
ae7bae6147 drsblobs.idl: add idl for Primary:Kerberos-Newer-Keys blob in supplementalCredentials
metze
(cherry picked from commit 97b7901afb)
(This used to be commit 5db983d153)
2008-07-23 23:10:05 +02:00
Michael Adam
6b7134e2d3 re-run "make idl" after fixing unknowns in package_PrimaryKerberos (drsblobs.idl)
Michael
(This used to be commit a5de166833)
2008-07-23 23:06:30 +02:00
Stefan Metzmacher
2951590a68 drsblobs.idl: fix unknowns in package_PrimaryKerberos idl
metze
(cherry picked from commit da9ceb2bf1)
(This used to be commit 5459745369)
2008-07-23 23:05:56 +02:00
Michael Adam
4c3aa3056c re-run "make idl" after fixing idl for supplementalCredentialsSubBlob.
Michael
(This used to be commit e33af40ad4)
2008-07-23 23:02:09 +02:00
Stefan Metzmacher
904d6528dc drsblobs.idl: fix idl for supplementalCredentialsSubBlob
metze
(cherry picked from commit 24c5b10136)
(This used to be commit 38aca9c117)
2008-07-23 23:01:07 +02:00
Michael Adam
66bb6ac2ea re-run "make idl" after changing unknown1->reserved in drsblobs.idl
Michael
(This used to be commit 398702a818)
2008-07-23 22:42:18 +02:00
Stefan Metzmacher
813048630e drsblobs.idl: rename unknown1 -> reserved
metze
(This used to be commit fb0379aede)
2008-07-23 22:38:17 +02:00
Steve French
224f9b839b cifs.upcall: fix compile warning
Steve French noticed these warnings when building cifs.upcall:

   Compiling client/cifs.upcall.c
   client/cifs.upcall.c: In function 'usage':
   client/cifs.upcall.c:204: warning: declaration of 'prog' shadows a global declaration
   client/cifs.upcall.c:33: warning: shadowed declaration is here

Change the usage function to not take and arg and have it just use the global
"prog" variable. Fix a typo in the log message generated when an unknown
option is specified. Also getopt() always returns '?' when it sees an unknown
option so there's no point in printing it out.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit 4b8362f977)
2008-07-23 14:25:17 -05:00
Karolin Seeger
7014c97aab rpc_parse: Unify spoolss debug messages.
Karolin
(This used to be commit 5ab391d466)
2008-07-22 21:46:14 +02:00
Michael Adam
2bd58bf383 Change occurrences of the u1 member of DsBindInfo* to pid after idl change.
Michael
(This used to be commit 42f3d681ca)
2008-07-22 16:28:13 +02:00
Michael Adam
bb1c03f1c6 re-run "make idl" after changing u1 member to pid in DsBindInfo*.
Michael
(This used to be commit d08e8c4738)
2008-07-22 16:28:13 +02:00
Michael Adam
1f54cc7953 drsuapi.idl: change the u1 field in DsBindInfo* to "pid".
According to the WSPP docs, section 5.35,
this is the "process identifyer" of the client.
It is meant for informational and debugging purposes
only and its assignment is implementation specific.

Michael
(This used to be commit 5c2119ba63)
2008-07-22 16:28:13 +02:00
Zach Loafman
472519eb69 Check for f_frsize when using statvfs
Add a configure test for the availability of f_frsize in struct statvfs
(for broken platforms that define statvfs but still have
f_bsize/f_iosize). Also add sys/types.h to the other struct statvfs test
(again, some platforms need it).
(This used to be commit 591bf1d15f)
2008-07-22 15:00:48 +02:00
Zach Loafman
abaa69b32b Make DSO_EXPORTS_CMD regexp more POSIX compliant
The FreeBSD sed command doesn't understand \? without passing -E to turn
on extended regexps. This patch changes the DSO_EXPORTS_CMD regexp to a
POSIX compliant RE by switching the \+ to a \{1,\} bound and the \? to a
\{0,1\} bound.
(This used to be commit 0acc888ca9)
2008-07-22 15:00:48 +02:00
Zach Loafman
863a6aa07e Fix warnings on FreeBSD-based platforms
Fix two shadowed declaration warnings on FreeBSD-based platform:
'reboot' is a 4.0BSD syscall in unistd.h and 'tcp_seq' is a typedef in
netinet/tcp.h.
(This used to be commit 14d2a4da1d)
2008-07-22 15:00:48 +02:00
Zach Loafman
06d0790c07 Fix various build warnings
This fixes various build warnings on our platform. I'm sure I haven't
caught them all, but it's a start.
(This used to be commit 6b73f259cb)
2008-07-22 15:00:48 +02:00
Zach Loafman
45bbad9ca0 Add --enable-picky-developer
This adds an --enable-picky-developer option that will halt compilation
on warnings. Yes, this could be handled by a direct Makefile change, but
people should be encourage to do it!
(This used to be commit 10a2ab4077)
2008-07-22 15:00:48 +02:00
Michael Adam
2d7660dcc3 rpcclient: make DsGetNCChanges work against w2k8 (add knowledge of DsBindInfo48)
Michael
(This used to be commit 27ce662f5d)
2008-07-22 14:47:11 +02:00
Michael Adam
a42aca1576 re-run make idl after adding drsuapi_DsBindInfo48 to drsuapi.idl
Michael
(This used to be commit ac5d8ede8a)
2008-07-22 13:23:18 +02:00
Michael Adam
b80a167db3 drsuapi.idl: add drsuapi_SupportedExtensionsExt bitfield.
This knowledge is obtained from the wspp-docs (section 5.35).

Michael
(cherry picked from commit f5afb69504)
(This used to be commit 7a3a2b916d)
2008-07-22 13:21:22 +02:00
Michael Adam
7864be2bf6 drsuapi.idl: the last 16 bytes in DsBindInfo48 ar the GUID of the config dn.
This bit seems not to be documented in the WSPP docs.

Michael
(cherry picked from commit 705f79bd0a)
(This used to be commit 995b0eda0c)
2008-07-22 13:21:17 +02:00
Michael Adam
79c2426dbc drsuapi.idl: add drsuapi_DsBindInfo48.
This is necessary to make DsGetNcChanges work with win2008.

Michael
(cherry picked from commit dd278b069b)
(This used to be commit 23742a3691)
2008-07-22 13:21:10 +02:00
Michael Adam
16a9020029 re-run make idl after Jelmer's "poperly cast array lengths" pidl change.
(f321240fa9)

Michael
(This used to be commit 962c2670b1)
2008-07-22 11:54:54 +02:00
Karolin Seeger
d616e6418d man pages: "printcap name" is a global parameter, not a share specific one.
Karolin
(This used to be commit 9cde252556)
2008-07-22 11:28:04 +02:00
Volker Lendecke
ad4774787f Update Roadmap
(cherry picked from commit d1c3b57085)
(This used to be commit 3d8336966c)
2008-07-21 16:20:16 +02:00
Volker Lendecke
20675473b9 YESS -- remove the PI_* pipe constants
(This used to be commit 26a40f708a)
2008-07-21 14:36:32 +02:00
Volker Lendecke
da6e4248ee Make idl: cli_do_rpc_ndr does not use pipe_idx anymore
(This used to be commit ffd2ff5325)
2008-07-21 14:36:31 +02:00
Volker Lendecke
a20c498310 Remove unused function rpccli_is_pipe_idx
(This used to be commit 287ffc17a0)
2008-07-21 14:36:31 +02:00
Volker Lendecke
86bb746406 Refactoring: CLI_DO_RPC_* uses interface instead of pipe_idx
(This used to be commit 6d2209ba5d)
2008-07-21 14:36:31 +02:00