summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
2000-06-08make_sec_acl was passed pointer to static array ace[2], oops.Luke Leighton1-1/+1
(This used to be commit f3502d846c99c77b13ce75977f5dc79cc1a3506d)
2000-06-08Cause printer SD's to be displayed correctly (full control).Jeremy Allison1-7/+9
Jeremy. (This used to be commit 341d07c516865bdd9be99f98cd0754d12b25f9c0)
2000-06-07Fixing get/set of security descriptors.Jeremy Allison1-4/+17
Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy. (This used to be commit 8ef41f31c53e14ad057d883810a1cd2301fede2a)
2000-06-06fixed sizeof() typoAndrew Tridgell1-4/+4
(This used to be commit 1da9c5531a8e26dc63b31a27fa73e0932278acb4)
2000-06-06fixed!!Andrew Tridgell1-10/+27
yipee! the damn "device settings cannot be displayed" error is gone. We needed to supply a default set of forms. I've added A4 and Letter by default. (This used to be commit 36f1189be1609490b6a825a2608b9cf5dc682656)
2000-06-06Create elements in default, not in read.Jeremy Allison1-0/+9
Jeremy. (This used to be commit 0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5)
2000-06-05fixed a off by one bug in ntforms read from the databaseAndrew Tridgell1-1/+1
(This used to be commit 1c5f70821981e961b81c31f5c83bb56c08ef5018)
2000-06-04we no longer need the code to cope with setprinter having corruptedAndrew Tridgell1-6/+0
data (This used to be commit c602b703a05b94748a890add751f47fc6b539c60)
2000-06-04some printer parameters are getting corrupted, possibly by the clientAndrew Tridgell1-2/+12
possibly by smbd. Reset them so printing at least works while I try to figure out what is going on. (This used to be commit 70476d6767a571460fa375fb1dae884df77ca143)
2000-06-04fixed the pack/unpack of the devicemodeAndrew Tridgell1-50/+82
we were being bitten by uint16/uint32 mixups (This used to be commit 1d37f76953534f7bf9d8890dda30c7e00cbb024c)
2000-06-04someone forgot a !Andrew Tridgell1-1/+1
(This used to be commit 29fa2e1d99235bc15b2916c404b46012eb77b7e2)
2000-06-03fixed some ptr declarationsAndrew Tridgell1-2/+2
(This used to be commit 7a670f5f3b627543bf776fc9698a2b5d46c110a3)
2000-06-03added %J and %T to run_print_command()Andrew Tridgell1-17/+25
made the run_print_command a varargs fn (This used to be commit b9f2cf459322fb3f10844f9441633c7bcd6ed151)
2000-06-02More memory corruption (leaks etc.) fixes.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 71a0621f552083880e89923055e8bd14d0b1b82f)
2000-06-01More insure found memory leak and corruption fixes.Jeremy Allison1-2/+19
Jeremy. (This used to be commit 3cdcfa6325b9cd2d7f7c90c4b2d1c6ec73fc2f6d)
2000-06-01param/loadparm.c: Looks like someone ran indent on this !Jeremy Allison1-5/+15
passdb/smbpass.c: Insure uninitialized memory reference fix. printing/nt_printing.c: rpc_server/srv_spoolss_nt.c: Insure memory leak fixes. smbd/unix_acls.c: Shadow ref fix. Jeremy. (This used to be commit d175d3ebefc053e9badd91ca5f2d8bd03eb6705d)
2000-06-01Back to building. Now to test with insure.Jeremy Allison1-3/+1
Added some frees needed to stop memory leaks. Jeremy. (This used to be commit eba31e4e802120c9eb8c4688f521b4de9cb91f5c)
2000-06-01Getting back to a compilable state (not there yet but close).Jeremy Allison1-91/+186
Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy. (This used to be commit c2099cfb033c2cdb6035f4f7f50ce21b98e1584d)
2000-05-29if the tdb stored driver isn't formatted right then return a defaultAndrew Tridgell1-1/+1
driver (This used to be commit 48bf12d23ee39ccc7c19363012abd48f43dfac11)
2000-05-28fixed a couple of bugs in the driver return codeAndrew Tridgell1-1/+9
(This used to be commit 8695cb0023597fd118241a431eeeddc559484465)
2000-05-27getting and setting security descriptors on printers now worksAndrew Tridgell1-16/+61
this needed some fixes in tdb_unpack(). Tim, you'll need to update (This used to be commit 9422719ab4c35e4ce3199b62dd632433bf391283)
2000-05-27fixed return from nt_printing_init()Andrew Tridgell1-1/+4
(This used to be commit 7e13ba75444eb82b257a7a3578aa30ae2f52fe1a)
2000-05-27fixed call of firstkey/nextkey to traverse driver databaseAndrew Tridgell1-4/+4
(This used to be commit 11010f946af4d60d88bed450692e43c6a7860ab7)
2000-05-27dummy trash in secdesc.Luke Leighton1-3/+7
(This used to be commit 56c2dbbf813e1dc120d199b173fd462c658572a0)
2000-05-27bug-fix from tim (insure). dummy fn call for andrew to fill in.Luke Leighton1-1/+12
(This used to be commit 1e3c0ab29d178fe58add32672301ac497d43a3fe)
2000-05-27security descs in spoolss. needs parse_sec.c nttrans.c broken.Luke Leighton1-2/+2
(This used to be commit f9f2a04fdb7b2af1cfe5bf26ec6f0d955ea948b9)
2000-05-24a fairly big change in spoolss.Andrew Tridgell2-761/+465
got rid of the forms, drivers and printers files in the nt drivers directory and instead use a single tdb note that this is _not_ all finished. (This used to be commit 06763d1ec2fafc42f8ee3f36f0aeacceb3a7109d)
2000-05-12added spool_io_printer_driver_info_level_6()Andrew Tridgell1-1/+76
thsi function and the associated header structure were autogenerated using a little awk based code geerator I wroe ths evening. I'll commit that next ... (This used to be commit 974813f0d4afb6c14ed27c48ab24b19932557f9f)
2000-05-12While we're all making incompatible tdb changes, I changed the implementationTim Potter1-3/+3
of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent. (This used to be commit a423c7c5f21dc4046530b85482dee88dcfcbf070)
2000-05-10fail a print start on a deleted auto printerAndrew Tridgell1-0/+6
(This used to be commit f1f92bf4da75ec6fccd34b07719d642196665258)
2000-05-10more merging voodooAndrew Tridgell1-0/+4
this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done (This used to be commit 92109d7b3c06f240452d39f669ecb8c9c86ab610)
2000-05-04 - use full_name instead of real_nameAndrew Tridgell1-10/+0
- got rid of guest map code in lpq parser (This used to be commit 8e53f781d3cf6a7007764916a0d8e8f1abea1f66)
2000-05-02added support for deleting printers into the spoolss systemAndrew Tridgell1-0/+15
(This used to be commit e72a5718537b84409fc20ff21951b1d1ab24d97f)
2000-05-02Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison1-2/+2
of doing a system call every time we want to just get our pid. Jeremy. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
2000-05-01handle tabs in printcap filesAndrew Tridgell1-2/+2
this is needed for lprng (This used to be commit c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d)
2000-04-25moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell1-1/+0
(This used to be commit d7cd7c88fdabb01d9e40ae8a657737907a21ac37)
2000-04-24Now that fsp's are created on successful file open, the structure memberJeremy Allison1-1/+0
fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy. (This used to be commit 389b700a26e8a308a0dff6fc038c38068aa0119a)
2000-04-24fixed another memory leakAndrew Tridgell1-0/+1
(This used to be commit 780713f67a848ade49c523cda96015ab46337cde)
2000-04-23fixed a memory leak I caused last week with my lines[] changesAndrew Tridgell1-6/+1
(This used to be commit 4c889d08aed3cebba54abbc96f28a2d1c545a4b5)
2000-04-23check for a valid snum when running a printing commandAndrew Tridgell1-0/+5
(This used to be commit 381ddb464fd0da671d567177f1ded10f67952692)
2000-04-23split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2-65/+91
in TNG (This used to be commit 82df25b28b94b0041676fb433e0e677acb544579)
2000-04-22This is a *big* checkin that may break some things, but implements theJeremy Allison1-3/+14
new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy. (This used to be commit ab0ecc39d688f16b9692fe90b991f0b89287070a)
2000-04-19use sys_fsusage() not disk_free() in printing.cAndrew Tridgell1-3/+3
(This used to be commit 763704f78fc44976b2d977e8a08ffdeb727903c4)
2000-04-18locking/locking.c: Fixed placeholder code for POSIX locking.Jeremy Allison1-7/+7
printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy (This used to be commit 204ca1195c86499bd9beb273ce573db7a56ccead)
2000-04-18don't parse blank linesAndrew Tridgell1-0/+2
(This used to be commit 8b1afe7e1af0a62244632e0a58b9e513ab4366f0)
2000-04-18fixed some crash bugs in the nt forms parsingAndrew Tridgell1-6/+6
(This used to be commit e505a6ddf3df37ca485cae117c53fa96d736f897)
2000-04-16converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell1-42/+41
to support some of this I added the following functions in util_file.c file_lines_pload : load lines from a pipe file_pload : load a pipe into memory (This used to be commit a09470817c5b21dba42f9ef4ce5e8b768a254c0b)
2000-04-16got rid of all the FILE* calls in the NT print system.Andrew Tridgell1-118/+112
this also fixes a few security holes in that code. JF - you need to be careful about open files for writing! symlinks can trap you. note that I always unlink() the file first, then open with O_EXCL. That is a cheap trick to avoid the symlink problems. (This used to be commit ad56e3d7915100a83b33ad36e627e13325197942)
2000-04-16improved the error handling and added queue pause and resumeAndrew Tridgell1-25/+43
(This used to be commit 5f5b79c9264510f5851ad1d6f3ce9e2b15e4a0da)
2000-04-16the bulk of the changes. Also split the loadparm related code into ↵Andrew Tridgell2-309/+797
printing/load.c so swat can get it without linking to the backend code ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places. (This used to be commit a902caf8d78ae4cb11ea3776d10273cb37d5fcd0)