summaryrefslogtreecommitdiffstats
path: root/source/printing
Commit message (Collapse)AuthorAgeFilesLines
...
* make_sec_acl was passed pointer to static array ace[2], oops.Luke Leighton2000-06-081-1/+1
|
* Cause printer SD's to be displayed correctly (full control).Jeremy Allison2000-06-081-7/+9
| | | | Jeremy.
* Fixing get/set of security descriptors.Jeremy Allison2000-06-071-4/+17
| | | | | | Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy.
* fixed sizeof() typoAndrew Tridgell2000-06-061-4/+4
|
* fixed!!Andrew Tridgell2000-06-061-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.
* Create elements in default, not in read.Jeremy Allison2000-06-061-0/+9
| | | | Jeremy.
* fixed a off by one bug in ntforms read from the databaseAndrew Tridgell2000-06-051-1/+1
|
* we no longer need the code to cope with setprinter having corruptedAndrew Tridgell2000-06-041-6/+0
| | | | data
* some printer parameters are getting corrupted, possibly by the clientAndrew Tridgell2000-06-041-2/+12
| | | | | possibly by smbd. Reset them so printing at least works while I try to figure out what is going on.
* fixed the pack/unpack of the devicemodeAndrew Tridgell2000-06-041-50/+82
| | | | we were being bitten by uint16/uint32 mixups
* someone forgot a !Andrew Tridgell2000-06-041-1/+1
|
* fixed some ptr declarationsAndrew Tridgell2000-06-031-2/+2
|
* added %J and %T to run_print_command()Andrew Tridgell2000-06-031-17/+25
| | | | made the run_print_command a varargs fn
* More memory corruption (leaks etc.) fixes.Jeremy Allison2000-06-021-0/+2
| | | | Jeremy.
* More insure found memory leak and corruption fixes.Jeremy Allison2000-06-011-2/+19
| | | | Jeremy.
* param/loadparm.c: Looks like someone ran indent on this !Jeremy Allison2000-06-011-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.
* Back to building. Now to test with insure.Jeremy Allison2000-06-011-3/+1
| | | | | Added some frees needed to stop memory leaks. Jeremy.
* Getting back to a compilable state (not there yet but close).Jeremy Allison2000-06-011-91/+186
| | | | | | | Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
* if the tdb stored driver isn't formatted right then return a defaultAndrew Tridgell2000-05-291-1/+1
| | | | driver
* fixed a couple of bugs in the driver return codeAndrew Tridgell2000-05-281-1/+9
|
* getting and setting security descriptors on printers now worksAndrew Tridgell2000-05-271-16/+61
| | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update
* fixed return from nt_printing_init()Andrew Tridgell2000-05-271-1/+4
|
* fixed call of firstkey/nextkey to traverse driver databaseAndrew Tridgell2000-05-271-4/+4
|
* dummy trash in secdesc.Luke Leighton2000-05-271-3/+7
|
* bug-fix from tim (insure). dummy fn call for andrew to fill in.Luke Leighton2000-05-271-1/+12
|
* security descs in spoolss. needs parse_sec.c nttrans.c broken.Luke Leighton2000-05-271-2/+2
|
* a fairly big change in spoolss.Andrew Tridgell2000-05-242-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.
* added spool_io_printer_driver_info_level_6()Andrew Tridgell2000-05-121-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 ...
* While we're all making incompatible tdb changes, I changed the implementationTim Potter2000-05-121-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.
* fail a print start on a deleted auto printerAndrew Tridgell2000-05-101-0/+6
|
* more merging voodooAndrew Tridgell2000-05-101-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
* - use full_name instead of real_nameAndrew Tridgell2000-05-041-10/+0
| | | | - got rid of guest map code in lpq parser
* added support for deleting printers into the spoolss systemAndrew Tridgell2000-05-021-0/+15
|
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-2/+2
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* handle tabs in printcap filesAndrew Tridgell2000-05-011-2/+2
| | | | this is needed for lprng
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-251-1/+0
|
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-241-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.
* fixed another memory leakAndrew Tridgell2000-04-241-0/+1
|
* fixed a memory leak I caused last week with my lines[] changesAndrew Tridgell2000-04-231-6/+1
|
* check for a valid snum when running a printing commandAndrew Tridgell2000-04-231-0/+5
|
* split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2000-04-232-65/+91
| | | | in TNG
* This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-221-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.
* use sys_fsusage() not disk_free() in printing.cAndrew Tridgell2000-04-191-3/+3
|
* locking/locking.c: Fixed placeholder code for POSIX locking.Jeremy Allison2000-04-181-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
* don't parse blank linesAndrew Tridgell2000-04-181-0/+2
|
* fixed some crash bugs in the nt forms parsingAndrew Tridgell2000-04-181-6/+6
|
* converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-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
* got rid of all the FILE* calls in the NT print system.Andrew Tridgell2000-04-161-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.
* improved the error handling and added queue pause and resumeAndrew Tridgell2000-04-161-25/+43
|
* the bulk of the changes. Also split the loadparm related code into ↵Andrew Tridgell2000-04-162-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.