1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

29534 Commits

Author SHA1 Message Date
Karolin Seeger
03d66554d1 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>
2008-07-25 09:53:26 +02:00
Jeremy Allison
167d611b52 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.
2008-07-24 18:12:12 -07:00
Andreas Schneider
12848e8eb9 Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-07-24 13:41:37 -07:00
Jeremy Allison
1500401967 Add casts to uint32_t to match prototype for sid_append_rid().
Jeremy.
2008-07-24 12:01:46 -07:00
Jeremy Allison
43eec65170 Use sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy.
2008-07-24 11:56:49 -07:00
Steve French
22afe367fe Merge branch 'v3-3-test' of git+ssh://sfrench@git.samba.org/data/git/samba into v33 2008-07-24 09:35:20 -05:00
Steve French
22c36b27c6 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
2008-07-24 09:32:53 -05:00
Volker Lendecke
865ea6fcbc Remove unused request_finished_cont() 2008-07-24 15:01:04 +02:00
Volker Lendecke
9e49d390f7 Make use of TALLOC_FREE when freeing the per-winbindrequest memory context 2008-07-24 14:50:22 +02:00
John H Terpstra
9b863a10da pdb_ldap: Raise level for debug message to avoid log file flooding. 2008-07-24 09:49:28 +02:00
Michael Adam
d78667c885 re-run "make idl" after adding idl for idl for Primary:Kerberos-Newer-Keys
Michael
2008-07-23 23:10:34 +02:00
Stefan Metzmacher
5db983d153 drsblobs.idl: add idl for Primary:Kerberos-Newer-Keys blob in supplementalCredentials
metze
(cherry picked from commit 97b7901afbccc9647ad2958d4cf12300de2655d1)
2008-07-23 23:10:05 +02:00
Michael Adam
a5de166833 re-run "make idl" after fixing unknowns in package_PrimaryKerberos (drsblobs.idl)
Michael
2008-07-23 23:06:30 +02:00
Stefan Metzmacher
5459745369 drsblobs.idl: fix unknowns in package_PrimaryKerberos idl
metze
(cherry picked from commit da9ceb2bf17f964334d9317829d40483e2c04b10)
2008-07-23 23:05:56 +02:00
Michael Adam
e33af40ad4 re-run "make idl" after fixing idl for supplementalCredentialsSubBlob.
Michael
2008-07-23 23:02:09 +02:00
Stefan Metzmacher
38aca9c117 drsblobs.idl: fix idl for supplementalCredentialsSubBlob
metze
(cherry picked from commit 24c5b10136f6e640832193aaf9e6d7e865c288bc)
2008-07-23 23:01:07 +02:00
Michael Adam
398702a818 re-run "make idl" after changing unknown1->reserved in drsblobs.idl
Michael
2008-07-23 22:42:18 +02:00
Stefan Metzmacher
fb0379aede drsblobs.idl: rename unknown1 -> reserved
metze
2008-07-23 22:38:17 +02:00
Steve French
4b8362f977 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>
2008-07-23 14:25:17 -05:00
Karolin Seeger
5ab391d466 rpc_parse: Unify spoolss debug messages.
Karolin
2008-07-22 21:46:14 +02:00
Michael Adam
42f3d681ca Change occurrences of the u1 member of DsBindInfo* to pid after idl change.
Michael
2008-07-22 16:28:13 +02:00
Michael Adam
d08e8c4738 re-run "make idl" after changing u1 member to pid in DsBindInfo*.
Michael
2008-07-22 16:28:13 +02:00
Michael Adam
5c2119ba63 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
2008-07-22 16:28:13 +02:00
Zach Loafman
591bf1d15f 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).
2008-07-22 15:00:48 +02:00
Zach Loafman
0acc888ca9 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.
2008-07-22 15:00:48 +02:00
Zach Loafman
14d2a4da1d 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.
2008-07-22 15:00:48 +02:00
Zach Loafman
6b73f259cb 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.
2008-07-22 15:00:48 +02:00
Zach Loafman
10a2ab4077 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!
2008-07-22 15:00:48 +02:00
Michael Adam
27ce662f5d rpcclient: make DsGetNCChanges work against w2k8 (add knowledge of DsBindInfo48)
Michael
2008-07-22 14:47:11 +02:00
Michael Adam
ac5d8ede8a re-run make idl after adding drsuapi_DsBindInfo48 to drsuapi.idl
Michael
2008-07-22 13:23:18 +02:00
Michael Adam
7a3a2b916d drsuapi.idl: add drsuapi_SupportedExtensionsExt bitfield.
This knowledge is obtained from the wspp-docs (section 5.35).

Michael
(cherry picked from commit f5afb695045b1a2f3b8c00a4d82d40e8e50726c9)
2008-07-22 13:21:22 +02:00
Michael Adam
995b0eda0c 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 705f79bd0a5e93daa0cb11b5dcca36e75c75df93)
2008-07-22 13:21:17 +02:00
Michael Adam
23742a3691 drsuapi.idl: add drsuapi_DsBindInfo48.
This is necessary to make DsGetNcChanges work with win2008.

Michael
(cherry picked from commit dd278b069b8683a0e3721ebb7d0de06d2bc1c86f)
2008-07-22 13:21:10 +02:00
Michael Adam
962c2670b1 re-run make idl after Jelmer's "poperly cast array lengths" pidl change.
(f321240fa91fa19c1131f119c42f64897d220682)

Michael
2008-07-22 11:54:54 +02:00
Karolin Seeger
9cde252556 man pages: "printcap name" is a global parameter, not a share specific one.
Karolin
2008-07-22 11:28:04 +02:00
Volker Lendecke
3d8336966c Update Roadmap
(cherry picked from commit d1c3b57085b493b47398daf71ce18f16ece57da0)
2008-07-21 16:20:16 +02:00
Volker Lendecke
26a40f708a YESS -- remove the PI_* pipe constants 2008-07-21 14:36:32 +02:00
Volker Lendecke
ffd2ff5325 Make idl: cli_do_rpc_ndr does not use pipe_idx anymore 2008-07-21 14:36:31 +02:00
Volker Lendecke
287ffc17a0 Remove unused function rpccli_is_pipe_idx 2008-07-21 14:36:31 +02:00
Volker Lendecke
6d2209ba5d Refactoring: CLI_DO_RPC_* uses interface instead of pipe_idx 2008-07-21 14:36:31 +02:00
Volker Lendecke
e949b9d11f Remove a reference to pipe_idx 2008-07-21 14:36:31 +02:00
Volker Lendecke
b60a681dd0 Remove some unused code 2008-07-21 14:36:31 +02:00
Volker Lendecke
e89bbab1b8 Remove one reference to PI_NETLOGON 2008-07-21 14:36:31 +02:00
Volker Lendecke
40247e8d3d Remove one reference to PI_LSARPC 2008-07-21 14:36:30 +02:00
Volker Lendecke
0df0e81784 Remove some fully outdated sample code 2008-07-21 14:36:30 +02:00
Volker Lendecke
ed4a447103 Remove now unused cli_get_pipe_name 2008-07-21 14:36:30 +02:00
Volker Lendecke
e02a550527 Remove now unused cli_get_pipe_idx 2008-07-21 14:36:29 +02:00
Volker Lendecke
2e60701e8d Remove now unused cli_get_iface 2008-07-21 14:36:28 +02:00
Volker Lendecke
0f77746f36 Refactoring: connect_dst_pipe uses ndr_syntax_id instead of pipe_idx 2008-07-21 14:36:28 +02:00
Volker Lendecke
85c8363d51 Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idx 2008-07-21 14:36:28 +02:00