1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

51743 Commits

Author SHA1 Message Date
Günther Deschner
00173c6ce6 s3-spoolss: merge path handling in _spoolss_PrintProcessorDirectory and
_spoolss_PrinterDriverDirectory.

Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
13995f5212 s3: re-run make samba3-idl.
Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
aa576c292f spoolss: return subcontext spoolss_DriverInfo in spoolss_GetPrinterDriver2.
Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
0ca5b72ad9 spoolss: add SPOOLSS_DEFAULT_SERVER_PATH.
Guenther
2009-02-24 11:03:27 +01:00
Andrew Bartlett
022946d196 Make the 'modules.conf' generation in the LDAP selftest simpler
The versions of OpenLDAP that we require don't need us to specify the
location any more - slaptest knows this from it's build time.

Andrew Bartlett
2009-02-24 20:49:59 +11:00
Tim Prouty
997dfbbf54 s3 OneFS: Fix a double free in an error path 2009-02-23 23:22:03 -08:00
Tim Prouty
7bcaaf14fb s3 OneFS: Add a parameter that unconditionally allows execute access 2009-02-23 23:21:48 -08:00
Steven Danneman
8d63c596a0 Refactored sys_fork() and sys_pid() into shared util library
This fixes a bug in 116ce19b, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.

Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Andrew Tridgell
3a1b4c00eb Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-24 11:40:28 +11:00
Andrew Tridgell
b9860043dc fixed the event context for net vampire 2009-02-24 11:39:44 +11:00
Jeremy Allison
faa1100d22 More warning fixes for Solaris.
Jeremy.
2009-02-23 16:22:43 -08:00
Günther Deschner
bcd6e5ec33 s3-spoolss: fix notify_printer_status_byname.
This took me almost a week to find, so here a little longer explanation:

When a windows client registers printer *status* change notifies using
spoolss_RemoteFindFirstChangeNotify, it registers them to a print server handle,
not a printer handle. We were then correctly monitoring the printer status
changes but were sending out the spoolss_RouterReplyPrinterEx via the back-channel
connection with job_id set to 0 (which we only may do for monitored printer
change status notifies on printer handlers, not print server handles). Windows
was then showing a new empty dummy printer icon in the explorer as it cannot
route the notify event to the approriate local handle. It also discarded the
content of the notify event message of course. With this, printer change notify for
pausing, resuming and purging printers nicely works again here.

Jerry, Tim and all other printing gurus, please check.

Guenther
2009-02-24 01:08:03 +01:00
Günther Deschner
3e796103b2 s3: re-run make samba3-idl.
Guenther
2009-02-24 01:03:19 +01:00
Günther Deschner
6532fea2c8 spoolss: add push,pull helper for spoolss_DriverInfo101.
Guenther
2009-02-24 01:02:37 +01:00
Günther Deschner
b8b3a6f1fc spoolss: add spoolss_DriverInfo101 to IDL.
Note that the size_is of the spoolss_DriverFileInfo is not reflected on the ndr.
It is just used as pidl cannot handle a relative pointer to a static array of
structs.

Guenther
2009-02-24 01:02:28 +01:00
Günther Deschner
0449d5c285 spoolss: generate size functions for printer driver structs.
Guenther
2009-02-24 01:02:16 +01:00
Günther Deschner
1a9bb33a7d error-codes: add WERR_INVALID_USER_BUFFER.
Guenther
2009-02-24 01:01:57 +01:00
Andrew Tridgell
0016b9cee8 added a missing linefeed 2009-02-24 10:48:11 +11:00
Jeremy Allison
2033b44c3f More warning fixes for Solaris.
Jeremy.
2009-02-23 15:44:34 -08:00
Jeremy Allison
0b62cdbed0 Quieten down a boatload of shadowed variable warnings on Solaris.
Makes real problems easier to spot.
Jeremy.
2009-02-23 15:03:29 -08:00
Simo Sorce
1cd7fe7194 Fix headers, ldb_includes.h is a private header,
do not reference it from ldb.h
2009-02-23 17:38:11 -05:00
Derrell Lipman
cf7539abfb Make char* parameters const
- Use const in function signatures whenever appropriate, to help prevent
  errant scribbling on users' buffers. smbc_set_credentials() always acted as
  if its formal parameters were const char *, and changing the formal
  declaration to specify that should not cause any change to the ABI. It is
  still allowable to pass a writable buffer to a function which specifies that
  it will not write to the buffer.

  I'm making this change only in master.

Derrell
2009-02-23 13:50:25 -05:00
Simo Sorce
ca24822234 Fix GDB_PROVISION mode 2009-02-23 13:33:39 -05:00
Simo Sorce
689b8f5bb3 Make all transactions nested in ldb. The current samba4 code expects this
behavior anyway, and given we can only have one transaction active per
ldb context this is the only sane model we can support.

Fix ldb_tdb transactions, we could return back with an error with neither
committing nor canceling the actual tdb transaction in some error paths
within the ltdb commit and cancel transaction paths.

Added also some debugging to trace what was going on.
2009-02-23 13:33:19 -05:00
Günther Deschner
fda0158c14 s3-spoolss: remove cli_spoolss_notify.c completly.
All of the spoolss change notify code uses pidl generated functions now.

Guenther
2009-02-23 16:40:52 +01:00
Günther Deschner
443743d423 s3-spoolss: remove old SPOOL_NOTIFY_OPTION definitions.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
2234984fd0 s3-spoolss: remove old spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
fc703a1492 s3-spoolss: remove SPOOL_NOTIFY_INFO_DATA and SPOOL_NOTIFY_INFO alltogether.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
0295008a87 s3-spoolss: remove old spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:26:00 +01:00
Günther Deschner
ce8ca0e68a s3-spoolss: remove old spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:20:12 +01:00
Günther Deschner
c1e76d0dd9 s3-spoolss: use pidl for _spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:17:38 +01:00
Günther Deschner
b3f6d69108 s3-spoolss: use spoolss_NotifyOption and spoolss_NotifyType instead of SPOOL_NOTIFY_OPTION and SPOOL_NOTIFY_OPTION_TYPE.
Guenther
2009-02-23 16:17:37 +01:00
Günther Deschner
2efa7cf6d9 s3-spoolss: add dup_spoolss_NotifyOption.
Guenther
2009-02-23 16:17:37 +01:00
Günther Deschner
418691c2e7 s3-spoolss: use more idl types in spoolss server.
Guenther
2009-02-23 16:17:36 +01:00
Günther Deschner
9b453f9248 s3-spoolss: fix memleak of spoolss_Notify array in _spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
9af13015b2 s3-spoolss: use rpccli_spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
5116f50eb8 s3-spoolss: use pidl for _spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
6259fac904 s3-spoolss: use struct spoolss_NotifyInfo instead of SPOOL_NOTIFY_INFO.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
03a15f2381 s3-spoolss: use struct spoolss_Notify instead of SPOOL_NOTIFY_INFO_DATA.
Guenther
2009-02-23 16:17:34 +01:00
Björn Jacke
00913a73c7 prefer gssapi header files from subdirectory
this fixes some compile time noise on FreeBSD 7
2009-02-23 13:41:16 +01:00
Günther Deschner
dc0bf17ac1 s3-rpcclient: use correct clientname in spoolss_RemoteFindFirstPrinterChangeNotifyEx command.
Guenther
2009-02-23 12:48:19 +01:00
Günther Deschner
e2ab5a155c s3: re-run make samba3-idl.
Guenther
2009-02-23 12:47:53 +01:00
Günther Deschner
db400032ab spoolss: spoolss_NotifyData contains a devmode container, not devmode pointer.
Guenther
2009-02-23 12:47:20 +01:00
Günther Deschner
672eb22bc1 spoolss: fix some PRINTER_CHANGE_ defines (and add a new windows 7 flag).
Guenther
2009-02-23 12:47:10 +01:00
Björn Jacke
cd6ae0de52 all BSDs use this evironment variable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Karolin Seeger
09a7f93f6b s3/docs: Fix typo in man mount.cifs.
Thanks to Tobias Stoeckmann for reporting!

Karolin
2009-02-23 09:24:50 +01:00
Steven Danneman
ac0d452ac6 s3: Wrap usage of rlimit in configure checks 2009-02-22 22:32:27 -08:00
Simo Sorce
4e5997736c For some unknown reason ldbrename was not being built in samba3. 2009-02-22 01:16:46 -05:00
Tim Prouty
8ec9903426 s3 OneFS: Add an atomic sendfile implementation 2009-02-21 17:10:42 -08:00
Tim Prouty
0dcfa9ce1b s3: If sendfile returns 0 bytes read, fall back to the normal read path
This allows sendfile implementations that are atomic to avoid having
to send zeros or kill the client connection on a short read (usually
the file was truncated).
2009-02-21 15:42:37 -08:00