summaryrefslogtreecommitdiffstats
path: root/source/printing/printfsp.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove current_user reference from printfsp.cVolker Lendecke2008-06-261-4/+2
|
* Change print_access_check to take auth_serversupplied_info instead of ↵Volker Lendecke2008-06-261-1/+1
| | | | | | current_user Reason: This is the main user of p->current_user which I would like to remove
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-071-1/+1
| | | | Michael
* r24464: Now Volker removed the readbmpx we don't need cached errors any more.Jeremy Allison2007-10-101-1/+0
| | | | Jeremy.
* r24120: add a file_id_create() hook into the VFS layerStefan Metzmacher2007-10-101-1/+1
| | | | | | | it's needed for some cluster filesystems to overload this function. metze
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23183: Check in a change made by Tridge:Volker Lendecke2007-10-101-2/+1
| | | | | | | | | | | | | This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-7/+13
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2007-10-101-2/+2
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2007-10-101-11/+12
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r6673: Fix the write cache based on some VERY good detective workJeremy Allison2007-10-101-1/+0
| | | | | | from Ingo Kilian <ikilian@web.de>. You must do a make clean after updating this. Jeremy.
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2007-10-101-1/+2
|
* r3067: patch based on volker's initial work in trunk that fixes the queu ↵Gerald Carter2007-10-101-6/+6
| | | | update problem when using the background daemon
* Prefix VFS API macros with SMB_ for consistency and to avoid problems with ↵Alexander Bokovoy2003-05-141-1/+1
| | | | VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
* Fix VFS layer:Alexander Bokovoy2003-05-111-1/+1
| | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
* Ensure we only ever set fsp->conn in one place.Jeremy Allison2003-02-041-1/+0
| | | | Jeremy.
* Fix debugs for rap mapping. Delete job on map fail.Jeremy Allison2002-12-051-1/+2
| | | | Jeremy.
* The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison2002-12-051-3/+19
| | | | | | jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-1/+1
|
* sync 3.0 branch with headJelmer Vernooij2002-08-171-3/+3
|
* Remove the "stat open" code - make it inline. This should fix theJeremy Allison2002-03-201-1/+0
| | | | | | | | 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.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Fixed display of "remote downlevel document" in old print job submissionJeremy Allison2002-01-251-2/+12
| | | | | case. Jeremy.
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-0/+1
| | | | Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-1/+0
| | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night
* Removed mktemp from HEAD - same as done in 2.2.Jeremy Allison2001-04-181-2/+2
| | | | Jeremy.
* configure:Jeremy Allison2001-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Also - in removing the tmpdir param in smbrun an extra NULL parameter was missed in each print_run_command() call (which is a varargs fn.). Now fixed. Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Fixed file descriptor leak in error processing of print jobs.Jeremy Allison2001-02-221-0/+8
| | | | | | NT sends "delete on close" to cancel a print job copied from the command line. Deal with this. Merged JohnR's fixes for print job errors. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/include/proto.h - make proto source/printing/nt_printing.c source/rpc_server/srv_spoolss_nt.c - Fix for the overwriting of printerdata entries when WinNT and Win2k are modifying printer parameters on PCL printers. Turns out that Win2k creates a printer with a NULL devmode entry and then expects to set it on *OPEN* (yes this is insane). So we cannot return a "default" devmode for a printer - and we must allow an open to set it. source/tdb/tdb.c - Show freelist in an easier format. Show total free. - When storing a new record, allocate memory for the key + data before the tdb_allocate() as if the malloc fails a (sparse) hole is left in the tdb. source/tdb/tdbtool.c - Show freelist in an easier format. Show total free. source/tdb/Makefile - cleaned up Makefile dependancies source/smbd/lanman.c - Fix for Win9x corrupting it's own parameter string. source/printing/printfsp.c source/printing/printing.c source/rpc_server/srv_spoolss_nt.c source/smbd/close.c - Added normal close parameter into print_fsp_end() which treats an abnormal close as error condition and deletes the spool file.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-4/+4
| | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* Re-instated lanman printing security checks (oops).Tim Potter2000-07-101-1/+1
| | | | | | | | | | | | | | | | | A user can now pause, resume or delete their own job even if they don't have the Manage Documents privilege. Added call to se_access_check() for changing printer properties. The Full Access privilege is required for the user to perform this. Several uninitialised variables and memory leaks plugged. Modified default ACL created on new printers to be Everyone / Print instead of Everyone / Full Access. This required some random stuffing around with the value of the revision field to correspond with the ACL that NT produces when setting the same permission on the printer. Fixed dodgy function call in printing/printfsp.c
* Pass the vuid from the connection_struct to the printing back end functions.Tim Potter2000-06-161-1/+1
|
* 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
* 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.
* split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2000-04-231-0/+91
in TNG