Gerald Carter
bb104f31d5
bug 770; correct fix this time; Make sure that we send the SMBjobid for unix jobs back to the client. Allows windows client to remove print jobs submitted from lpr
...
(This used to be commit 5145611188
)
2004-01-14 20:56:26 +00:00
Gerald Carter
e7615b5776
bug 660; using byte order safe macros (or tdb_unpack) when reading 2 or 4 byte values from a tdb buffer
...
(This used to be commit be9f25bea9
)
2004-01-14 19:12:06 +00:00
Gerald Carter
038784aa80
don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770
...
(This used to be commit 3a55788dca
)
2003-12-01 18:02:05 +00:00
Gerald Carter
055750f090
allow users to delete jobs with cups printing backend
...
The changes the name of the job passed off to cups
from "Test Page" to "smbprn.00000033 Test Page" so that
we can get the smb jobid back from lpq. Working on bug
770.
(This used to be commit 5979f4d645
)
2003-11-25 19:16:35 +00:00
Gerald Carter
281e293331
* Fix from SATOH Fumiyasu for bug 660 (failing to view print
...
jobs) by only enforce the 'max reported print jobs' parameter
when it is non-zero.
* Fixed bug 338 by making sure that data values are written
out when we are marshalling an EnumPrinterDataEx() reply.
This probably fixes other bugs reported against point-n-print
feature in 3.0.0
(This used to be commit fd98af75d6
)
2003-11-13 20:15:17 +00:00
Andrew Tridgell
e1c468477c
a small include file rearrangement that doesn't affect normal
...
compilation, but that allows Samba3 to take advantage of pre-compiled
headers in gcc if available.
(This used to be commit b3e024ce1d
)
2003-11-12 01:51:10 +00:00
Gerald Carter
8ce241cb80
fix unitiailized timestamp where merging print_jobs and lpq listing
...
(This used to be commit 8382cd6796
)
2003-09-11 17:01:26 +00:00
Gerald Carter
c674e411c7
i guess i'm the only one this ever annyoed...
...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
(This used to be commit 66359531b8
)
2003-07-10 20:37:01 +00:00
Gerald Carter
fb5a006c09
fix typos in log messages and comments.
...
(This used to be commit fd24183ec3
)
2003-07-01 05:45:16 +00:00
Jeremy Allison
cf00ce3e87
Fix mem leak. Spotted by tpot (thanks Tim).
...
Jeremy.
(This used to be commit 03a1f46e34
)
2003-04-16 08:46:03 +00:00
Jeremy Allison
6e0bd81f44
Grr. Get rid of one of the extra NULL's that crept in from app-head.
...
Spotted by Andrew Esh.
Jeremy.
(This used to be commit 9e6e6c3f50
)
2003-04-10 19:34:52 +00:00
Jeremy Allison
7991cf1e52
Fix the new storage code to correctly convert from system queue info to
...
pjob info. Ensure we retrieve more than one job from the storage code.
Jeremy.
(This used to be commit 59be98401c
)
2003-04-04 01:02:20 +00:00
Jeremy Allison
a9b39993fa
Subtle changes to message handling after ENUMJOBS.
...
Jeremy.
(This used to be commit e5e83544dc
)
2003-04-02 02:31:51 +00:00
Jeremy Allison
5ab2abd707
Fix extra NULL arg added during app-head merge.
...
Jeremy.
(This used to be commit b2ef052ada
)
2003-03-26 19:35:37 +00:00
Jeremy Allison
67df8fb300
Merge of new appliance-head scalable printing fixes.
...
Jeremy.
(This used to be commit 331e621b58
)
2003-03-21 22:00:21 +00:00
Jeremy Allison
3be18a1fba
lib/messages.c: Check return from chainlock before modifying message queue.
...
Apply the job returned limit across all requests for job queues.
Jeremy.
(This used to be commit bf795b684e
)
2003-03-20 00:52:37 +00:00
Jeremy Allison
0bf15545dd
Ensure added jobs increment total_jobs.
...
Jeremy.
(This used to be commit a75d9fc4e1
)
2003-03-01 00:49:00 +00:00
Jeremy Allison
647d65e08b
Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if the
...
jobid is below the UNIX_JOB_START number.
Jeremy.
(This used to be commit 7ec1c8869d
)
2003-02-19 01:43:33 +00:00
Jeremy Allison
4703248a8e
Ensure we return NOSPACE if we can't fast allocate a print job.
...
Jeremy.
(This used to be commit 82cf8aa747
)
2003-02-08 01:04:43 +00:00
Jeremy Allison
42edbfe918
Hold the lock for a much shorter time when allocating a new jobid.
...
Jeremy.
(This used to be commit 62e274abbb
)
2003-02-04 23:52:49 +00:00
Jeremy Allison
920287bf6b
More scalable print tdb fixes.
...
Jeremy.
(This used to be commit 7ace900b33
)
2003-01-30 23:26:49 +00:00
Andrew Bartlett
27b7e51a3c
Merge from HEAD:
...
- fstring/pstring mixups
- the detection code that found them (disabled)
- a bit of whitespace
- a static
Andrew Bartlett
(This used to be commit 9b70fa868e
)
2003-01-14 08:53:59 +00:00
Gerald Carter
071af8f007
[merge] make sure to update print queue cache during timeout_processing() to send notify events; CR 1491
...
(This used to be commit f8a915b14d
)
2003-01-11 02:38:36 +00:00
Jeremy Allison
545087c060
Don't delete jobs subitted after the lpq time.
...
Jeremy.
(This used to be commit 6cb9f6ccb1
)
2003-01-10 01:21:59 +00:00
Andrew Bartlett
634c54310c
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
...
warnings. (Adds a lot of const).
Andrew Bartlett
(This used to be commit 3a7458f947
)
2003-01-03 08:28:12 +00:00
Jeremy Allison
3999a905e9
Fix debugs for rap mapping. Delete job on map fail.
...
Jeremy.
(This used to be commit 6eb27e4f0d
)
2002-12-05 22:32:15 +00:00
Jeremy Allison
00a20ce45f
The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
...
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
(This used to be commit 6c23d2030a
)
2002-12-05 04:00:16 +00:00
Gerald Carter
afc5f1aefb
[print notify fixes from APP_HEAD]
...
* fixing change notify on print server handle
* adding change notify support into smbcontrol for sending comment
changes, etc...
All part of CR 1159/1160
(This used to be commit f1062e79de
)
2002-11-26 00:46:31 +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 5d5762d178
)
2002-11-23 02:52:36 +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 06b0438007
)
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 7e7b40e0fe
)
2002-11-10 03:00:43 +00:00
Jeremy Allison
72b7cfe4f1
Fix crash bug with overwriting malloced memory.
...
Jeremy.
(This used to be commit 3228730c83
)
2002-11-07 22:43:54 +00:00
Jeremy Allison
9304248788
Merge of scalable printing code fix... Needs testing.
...
Jeremy.
(This used to be commit d030df7643
)
2002-11-07 02:15:35 +00:00
Jeremy Allison
a63844e10e
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
(This used to be commit 6efd17ef78
)
2002-10-31 23:41:00 +00:00
Jeremy Allison
0e7938ab5d
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
(This used to be commit e240c7a428
)
2002-10-26 00:29:04 +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 743f2b8025
)
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 20986489f4
)
2002-10-16 20:09:51 +00:00
Jeremy Allison
64876b9fb8
SMB_ASSERT to check list terminates.
...
Jeremy.
(This used to be commit bf3b0ef561
)
2002-10-16 01:28:42 +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 9fe3c0b90d
)
2002-10-04 22:53:18 +00:00
Gerald Carter
a834a73e34
sync'ing up for 3.0alpha20 release
...
(This used to be commit 65e7b5273b
)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
b2edf254ed
sync 3.0 branch with head
...
(This used to be commit 3928578b52
)
2002-08-17 17:00:51 +00:00
Andrew Tridgell
e90b652848
updated the 3.0 branch from the head branch - ready for alpha18
...
(This used to be commit 03ac082dcb
)
2002-07-15 10:35:28 +00:00
Gerald Carter
2699f9b9df
printing merge from HEAD
...
(This used to be commit d3aed37dd8
)
2002-04-22 18:48:45 +00:00
Jeremy Allison
e67f1be9f0
Ensure we don't do lp_servicename()'s in tdb traverse as this
...
allocates lots of memory.
Jeremy.
(This used to be commit fbc8c6a109
)
2002-03-20 22:39:30 +00:00
Jeremy Allison
60a7d07d63
Print queue entries *must* have queue names, not numbers - numbers are
...
not identical between different smbds (mr potter, come here and take
your medicine.... :-).
Jeremy.
(This used to be commit 230941d2fb
)
2002-03-20 21:55:57 +00:00
Jeremy Allison
72eb7dbd40
Merge in JohnR's page count fixes.
...
Jeremy.
(This used to be commit 2e3133fbe5
)
2002-03-19 02:35:12 +00:00
Gerald Carter
65c007b583
syncing up printing code with SAMBA_2_2 (already done some merges
...
in the reverse).
* add in new printer change notify code from SAMBA_2_2
* add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()
* sync up the _print_queue_struct in smb.h (why did someone change the
user/file names in fs_user/fs_file (or vice-versa) ? )
* sync up some cli_spoolss_XXX functions
(This used to be commit 5760315c1d
)
2002-03-15 08:14:10 +00:00
Tim Potter
57bd576445
getpid() -> sys_getpid()
...
(This used to be commit a3cea5e9ae
)
2002-03-14 01:53:04 +00:00
Jeremy Allison
024e69da0b
Fix for machines that have their time changed forward, then back. Ensure
...
that any cached lpq information gathered during that time doesn't
stay around for longer than 1 hour.
Jeremy.
(This used to be commit 39fca711a5
)
2002-03-07 21:51:59 +00:00
Jeremy Allison
2ff9390245
Fixup the sending of printer change messages from job changes.
...
Jeremy.
(This used to be commit 28d4e7a3e2
)
2002-02-26 03:12:09 +00:00