1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

407 Commits

Author SHA1 Message Date
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
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
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
8980fcf1ea Keeping branches in sync....
Jeremy.
(This used to be commit eb937761c4047bd98990ca33e56b668465e2c228)
2002-11-07 07:13:29 +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
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
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
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
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
64876b9fb8 SMB_ASSERT to check list terminates.
Jeremy.
(This used to be commit bf3b0ef56168aff9b1bd5760b595f8951d434861)
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 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
Jelmer Vernooij
b2edf254ed sync 3.0 branch with head
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-08-17 17:00:51 +00:00
Jelmer Vernooij
669a39fae3 Sync 3.0 branch with HEAD
(This used to be commit eac75549c398f208484ae735d5a5931fed6d0e99)
2002-08-17 16:31:24 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
cvs2svn Import User
ec167dc9cc This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit b8d39651fb90ef170055735412417239a63afc5d) 2002-07-14 22:15:21 +00:00
Gerald Carter
bdfe11eaea added copyright
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)
2002-07-11 13:17:57 +00:00
Gerald Carter
137570cb03 last check in for tonight.
* DeletePrinterDriverEx() now has the ability to delete
    driver files.  I need to do some more testing
    tro veriofy that we are in fact not deleting a file out from
    under another driver, but it looks ok so far.

  * DeletePrinterDriver() noiw deletes all versions of the
    specified driver (cversion == 0, 1, 2, 3)
(This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)
2002-07-11 04:53:39 +00:00
Gerald Carter
0aadcff8ec all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
(This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)
2002-07-11 03:27:12 +00:00
Gerald Carter
496e85dd81 intermediate work on DeletePrinterDriverEx(). This call
will actually delete driver files ( not yet though I don't think).
Just wanted to get it in since Jeremy and I are both
working on nt_printing.c
(This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)
2002-07-11 01:54:26 +00:00
Jeremy Allison
25148a148c *Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
(This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-07-11 00:06:29 +00:00
Jeremy Allison
429400e449 Fix for LPRng from James Henstridge james@daa.com.au.
Jeremy.
(This used to be commit 9c93f8908919a02099884d393312ef27d4a2d24e)
2002-07-08 18:24:59 +00:00
Jeremy Allison
82176f4d85 Address the string_sub problem by changing len = 0 to mean "no expand".
Went through and checked all string_subs I could to ensure they're being
used correctly.
Jeremy.
(This used to be commit 17cae0d683be404be69554cd0e84117bdcc56c87)
2002-07-02 06:34:27 +00:00
Andrew Tridgell
9930b0b065 used findstatic.pl to make some variables static and remove some dead
code
(This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-07-01 09:12:41 +00:00
Jeremy Allison
e7a866dd3d Shut down printing tdb correctly - this will be more important when I go
to a tdb per-queue for scalability.
Jeremy.
(This used to be commit e808eb2758ff4ad1eed7b50a02865b87ba0c068e)
2002-06-28 23:11:31 +00:00
Jeremy Allison
452eb38df0 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
(This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-28 00:17:15 +00:00
Gerald Carter
a9093a1b58 It's fairly obvious that no one has tried to upload a driver
to a Samba print server running HEAD in a while.  This has been broken
since tridge's changes to make_connection() to not do the chdir()
to the connect_path.  Sorry it took me so long to get around to fixing it.

The problem occured with our internal use of make_connection().

jerry
(This used to be commit b5bc8aa0f68ceebfb5c0ec15ff93b0172cec36d8)
2002-06-27 18:10:56 +00:00
Gerald Carter
96c00daefa replacing free() with SAFE_FREE() where possible
(This used to be commit 5a4a7e5a88f4fdc5891436b05e44b05d1e7ad3f1)
2002-06-24 21:14:30 +00:00
Gerald Carter
86e2e9b8a3 backing out changes for now
(This used to be commit e3422addeb2a74ba92e3b5374d1a1efbcc825d5a)
2002-06-24 20:26:37 +00:00
Gerald Carter
900fb62238 printing merge from SAMBA_2_2. Ther server code looks to be in sync now.
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions
being

  * John driver init changes
  * Tim's printer enumeration bug fix
(This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)
2002-06-24 19:51:23 +00:00
Jeremy Allison
7ed5608732 Format tidyup before I start working on scalability fixes (one file per
print queue).
Jeremy.
(This used to be commit 6544a500d0696c9fe1f1abc067a8b963a0e2b8da)
2002-06-21 01:19:31 +00:00
Andrew Bartlett
b0ffabdcca Globally replace 'global_sam_sid' with get_global_sam_sid(), a self
initialising function.  This patch thanks to the work of
"Stefan (metze) Metzmacher" <metze@metzemix.de>

This is partly to enable the transition to SIDs in the the passdb.

Andrew Bartlett
(This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)
2002-06-07 14:33:33 +00:00
Jim McDonough
6b623b68d4 Ok, ok, I was too impatient...
(This used to be commit af35c5a57ca5544441bd82b695d878f388cd5e73)
2002-05-10 00:08:54 +00:00
Jim McDonough
961352403f Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.
Jeremy, please verify that this was ok...
(This used to be commit f191563c7f1cfb7250327333a9470edc4dbedde1)
2002-05-10 00:07:37 +00:00
Jeremy Allison
059da8fb3b Merged in printing fixes... There were many missing !
Jeremy
(This used to be commit 32fa089adead6ff3279172fd36560f4f9e2aeef0)
2002-05-09 19:54:47 +00:00
Gerald Carter
2699f9b9df printing merge from HEAD
(This used to be commit d3aed37dd87d425f51bcdc4e5151f0b0fe8f9c6b)
2002-04-22 18:48:45 +00:00
Jeremy Allison
16e1ff4f3a Added Martin's lpq parse fixes from 2.2.
Jeremy.
(This used to be commit 3853234c2649c501e9876f940f802be86cb6383d)
2002-04-19 17:59:13 +00:00
Jeremy Allison
baf8e2e712 When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).
Jeremy.
(This used to be commit 9209d8e718e860e6a58937376cbb437b6b7adbbb)
2002-04-19 17:10:56 +00:00
Tim Potter
1667a82106 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
(This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)
2002-04-15 04:07:13 +00:00
Tim Potter
fea03cef2b Merge of print server permission handling fixes from HEAD.
(This used to be commit 62ee1f8c3fbcf83641bed881143a1a8c70f836ba)
2002-04-15 03:49:53 +00:00
Andrew Tridgell
45b291b851 when background printing wasn't enabled printing was completely broken
as the pid was 0
(This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)
2002-04-13 00:58:04 +00:00
Gerald Carter
e1e8c5b396 removed unnecessary memset
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)
2002-04-11 03:15:02 +00:00
Gerald Carter
b40e73e2ca specversion merge from SAMBA_2_2
(This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
2002-04-11 01:48:38 +00:00
Tim Potter
ce236d1dbf Stomped on some header file version numbers that have crept back in.
(This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
2002-03-22 06:24:38 +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 fbc8c6a1096ec829f48b403239f105065bf155b1)
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 230941d2fbb746d39c00e482e7f600c68aa45efa)
2002-03-20 21:55:57 +00:00
Jeremy Allison
b9e91d2a8e Remove the "stat open" code - make it inline. This should fix the
bugs with opening and renaming mp3 files, also the word rename
problems that people have had for a while.
Needs a make clean :-) make.
Also added JohnR's printing fix.
Jeremy.
(This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)
2002-03-20 00:46:53 +00:00
Jeremy Allison
adf2431443 Merge JohnR's fix.
Jeremy.
(This used to be commit d5fd1fd859cec3076d2f01ed234314ea8d80a753)
2002-03-19 23:33:32 +00:00