Andrew Bartlett
94596400e3
No need to #include smb.h, when we already #include include.h
...
(This used to be commit b3049bb0d0ff97142940e2b33e9603d1c231ccfe)
2002-11-24 08:37:02 +00:00
Jeremy Allison
f023d6129b
Lots of fixes for error paths where tdb_fetch() data need freeing.
...
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
(This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-23 02:52:38 +00:00
Jeremy Allison
de474974ea
Lots of fixes for error paths where tdb_fetch() data need freeing.
...
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
(This used to be commit 5d5762d1787db4392d2dff16024097c638b2d494)
2002-11-23 02:52:36 +00:00
Jeremy Allison
2f194322d4
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
...
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-12 23:20:50 +00:00
Jeremy Allison
250c980119
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
...
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-12 23:15:52 +00:00
Jeremy Allison
7f94064e4a
First cut of fix for changenotify on a print server handle. Use the connections tdb
...
with an snum of -1 and a special printername.
Jeremy.
(This used to be commit 940b04ddfa87acc939911e3fe76496e3c4675632)
2002-11-10 22:24:10 +00:00
Jeremy Allison
fc2dc328e1
First cut of fix for changenotify on a print server handle. Use the connections tdb
...
with an snum of -1 and a special printername.
Jeremy.
(This used to be commit 06b04380078ad840768a2c5a803f02669f54bc82)
2002-11-10 22:24:00 +00:00
Jeremy Allison
978214b18e
Fix for scalable printing noticed by tpot. Don't loop infinately
...
when holding a mutex.... :-).
Jeremy.
(This used to be commit 7e7b40e0fe1302ae416247c70d8d76bd82ec3474)
2002-11-10 03:00:43 +00:00
Jeremy Allison
f4fb10c622
Fix for scalable printing noticed by tpot. Don't loop infinately
...
when holding a mutex.... :-).
Jeremy.
(This used to be commit c206643baaae64cef38f2f74e46337d35a489ca9)
2002-11-10 03:00:28 +00:00
Jeremy Allison
e1adcd154a
Fix crash bug with overwriting memory.
...
Jeremy.
(This used to be commit 9b08b4e4c24290e5d90a7cc2dc442cb82e73df28)
2002-11-07 22:45:11 +00:00
Jeremy Allison
72b7cfe4f1
Fix crash bug with overwriting malloced memory.
...
Jeremy.
(This used to be commit 3228730c8311ec6507227f8936318b1d965c1228)
2002-11-07 22:43:54 +00:00
Jeremy Allison
d1e10b7971
Keeping branches in sync....
...
Jeremy.
(This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)
2002-11-07 07:14:14 +00:00
Jeremy Allison
8980fcf1ea
Keeping branches in sync....
...
Jeremy.
(This used to be commit eb937761c4047bd98990ca33e56b668465e2c228)
2002-11-07 07:13:29 +00:00
Jeremy Allison
47955b2f6c
Merge of scalable printing code fix... Needs testing.
...
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
(This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-11-07 02:38:42 +00:00
Jeremy Allison
9304248788
Merge of scalable printing code fix... Needs testing.
...
Jeremy.
(This used to be commit d030df76439c72825d68410211e62090438cef54)
2002-11-07 02:15:35 +00:00
Jeremy Allison
5593892caf
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
(This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-10-31 23:41:02 +00:00
Jeremy Allison
a63844e10e
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
(This used to be commit 6efd17ef78ebcfed1130312fa019d674e4663a00)
2002-10-31 23:41:00 +00:00
Jeremy Allison
0e2eedb268
Check the long_archi name is not null.
...
Jeremy.
(This used to be commit 9e47aa32ed96faff4a68a8e360c1353fc011adf1)
2002-10-31 18:43:05 +00:00
Jeremy Allison
63eefb36f1
Check the long_archi name for NULL.
...
Jeremy.
(This used to be commit e504d1170da0d89da78063f0a00fc7b9294d911f)
2002-10-31 18:42:38 +00:00
Jeremy Allison
3103303d2a
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
(This used to be commit 997c234e15a5f8d742320359a53e15a27661d456)
2002-10-26 00:29:21 +00:00
Jeremy Allison
0e7938ab5d
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
(This used to be commit e240c7a428659bce392d47f2eda16bdcf32863c1)
2002-10-26 00:29:04 +00:00
Gerald Carter
534220da60
merge from samba_3_0
...
removed the following parameters
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
(This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)
2002-10-21 20:28:11 +00:00
Gerald Carter
6ce3e3b10c
removed the following parameters
...
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
(This used to be commit 743f2b8025effe57d8f075ff14a9357123c507a8)
2002-10-21 20:11:12 +00:00
Jeremy Allison
452baba8cb
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
...
Jeremy.
(This used to be commit 20986489f4736820a4981c6aa0eecccf169f0170)
2002-10-16 20:09:51 +00:00
Jeremy Allison
33b9cc3f67
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
...
Jeremy.
(This used to be commit 0d989a911d742ed5eeb874f5b8350b0931f3d9db)
2002-10-16 20:09:22 +00:00
Jeremy Allison
64876b9fb8
SMB_ASSERT to check list terminates.
...
Jeremy.
(This used to be commit bf3b0ef56168aff9b1bd5760b595f8951d434861)
2002-10-16 01:28:42 +00:00
Jeremy Allison
f55eb87af5
SMB_ASSERT to check list terminates.
...
Jeremy
(This used to be commit 25f6a9247e88a94cbacdc8fb06dc0d13c53d69bd)
2002-10-16 01:28:11 +00:00
Jeremy Allison
9c94d1a2f7
Add a timeout to tdb_lock_bystring(). Ensure we never have more than
...
MAX_PRINT_JOBS in a queue.
Jeremy.
(This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-10-04 22:53:30 +00:00
Jeremy Allison
3665777a5b
Add a timeout to tdb_lock_bystring(). Ensure we never have more than
...
MAX_PRINT_JOBS in a queue.
Jeremy.
(This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
2002-10-04 22:53:18 +00:00
Gerald Carter
a834a73e34
sync'ing up for 3.0alpha20 release
...
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-09-25 15:19:00 +00:00
Andrew Bartlett
780e048f58
At least try to get this function picked up by the autoprototyper
...
(This used to be commit d5303d5c080212486329f7e5a65f732e11efbb37)
2002-09-25 09:56:36 +00:00
Gerald Carter
4912dd90ee
merge from APP_HEAD
...
(This used to be commit 930c6710fe076b52ad21addf5fcda834f85e15a9)
2002-09-25 05:01:51 +00:00
Jeremy Allison
2b425763b8
Hold lock on NEXTJOB record for a very short time. Jerry needs to add code
...
to make this rebust w.r.t. stored devicemodes.
Jeremy.
(This used to be commit f93a008f09acda2ddaff9857f2fe0c86948539d1)
2002-09-24 22:57:51 +00:00
Gerald Carter
56baccb928
CUPS merge from SAMBA_2_2
...
(This used to be commit cbb16eac0e79649f4383763439c7e745f27fd0cb)
2002-09-20 15:11:31 +00:00
Gerald Carter
aad3c35ac1
printjob merge from APP_HEAD regarding device modes
...
(This used to be commit aa52351384abace54a89c9fbfa5e4c31a8464c91)
2002-09-18 19:06:58 +00:00
Gerald Carter
5d390fc5c7
AbortPrinter() fix merged from APP_HEAD.
...
(This used to be commit 97ede49e1271fa00c6ffdf9e6e3c2330ea935461)
2002-09-10 21:37:53 +00:00
Jeremy Allison
4cf5238599
Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
...
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
2002-09-05 12:55:56 +00:00
Jeremy Allison
8ac6e260b9
Remove donotify as notifies are cheap now.
...
Jeremy.
(This used to be commit 78585de5811d10bcca156e296c7dd51eabe5d626)
2002-09-05 05:26:29 +00:00
Tim Potter
481c0db0ac
Roussed on Jeremy for not putting in enough debugs in the new print
...
notify stuff. (-:
(This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
2002-09-05 04:22:16 +00:00
Jeremy Allison
2658e4ee23
Added better error code on out of space. Removed total jobs check - not
...
applicable any more.
Jeremy.
(This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04 23:40:49 +00:00
Jeremy Allison
cbaa14857b
Merge of (apparently working :-) new printing notify code.
...
Jeremy.
(This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-09-04 21:59:38 +00:00
Jeremy Allison
a1aafce4dc
Add bcast_msg_flags to connection struct. Allows sender to filter when
...
sending broadcast messages. Also initial cut-down of printing notify
messages (not yet finished).
Jeremy.
(This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-09-04 19:13:06 +00:00
Gerald Carter
59f40f31ed
DeletePrinterDriver[Ex]() fixes from APP_HEAD
...
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)
2002-09-04 01:14:24 +00:00
Gerald Carter
3cbe892276
fix up print portion of registry. Merge from APP_HEAD.
...
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)
2002-08-30 14:48:33 +00:00
Gerald Carter
de3d0310e2
merge of phant0m key fix from APP_HEAD
...
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)
2002-08-30 10:47:34 +00:00
Jeremy Allison
28a7d0f506
Move to reference counting rather than lock counting.
...
Jeremy.
(This used to be commit e7b48224c4f8c6063e1dd850cc91f5488e65a48d)
2002-08-27 23:59:26 +00:00
Jeremy Allison
e519e528a0
Handle locking correctly.
...
Jeremy.
(This used to be commit 4208f027cff77142df4f984a4a8985afbe30a4f1)
2002-08-27 20:23:12 +00:00
Jeremy Allison
16413f2d9d
Allow us to "lock" printer tdb entries in memory to stop them being
...
re-used as cache.
Jeremy.
(This used to be commit 6f901e479dd7a0b9d1395aad5b8ef028c0514fec)
2002-08-27 20:15:35 +00:00
Gerald Carter
12be900ece
* Fix DeletePrinterDataEx() to work with arbitrary registry keys
...
* Fix delete_all_printer_data() to accept a key name for partial tree
deletions
* Fix EnumPrinterKey() to work with subkeys
* Fix DeletePrinterKey() to work with ful or partial registry
trees
* Fix get_printer_subkeys() to return a list of unique keynames
( some were getting added twice due to subkeys names )
* fix a couple of typos for good measure
(This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18 16:52:51 +00:00
Gerald Carter
11fadbee74
fix GetPrinterDataEx() to work with registry subkeys using a depth > 1
...
(This used to be commit 8799d4f7ccf3b3767c155d29f15cecd142d0db99)
2002-08-18 12:33:41 +00:00