summaryrefslogtreecommitdiffstats
path: root/source3/printing/lpq_parse.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #7288 - SMB job IDs in CUPS job names wrong.Jeremy Allison2010-03-251-0/+21
| | | | | | | | | | | | | | | | | | | | | | | Based on a patch from Michael Karcher <samba@mkarcher.dialup.fu-berlin.de>. I think this is the correct fix. It causes cups_job_submit to use print_parse_jobid(), which I've moved into printing/lpq_parse.c (to allow the link to work). It turns out the old print_parse_jobid() was *broken*, in that the pjob filename was set as an absolute path - not relative to the sharename (due to it not going through the VFS calls). This meant that the original code doing a strncmp on the first part of the filename would always fail - it starts with a "/", not the relative pathname of PRINT_SPOOL_PREFIX ("smbprn."). This fix could fix some other mysterious printing bugs - probably the ones Guenther noticed where job control fails on non-cups backends. Guenther PLEASE CHECK ! Jeremy.
* Fix some scary FC9 warningsVolker Lendecke2008-06-101-39/+41
| | | | | (cherry picked from commit 6b0fed09ea34409d1c61bae9121bdb38d4c68d62) (This used to be commit f1e85ff2bc4eea2c50d7d71caca16b9051ca5e8c)
* strtok -> strtok_rVolker Lendecke2008-01-231-2/+4
| | | | (This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
* Remove another static fstring.Jeremy Allison2007-12-181-3/+8
| | | | | Jeremy. (This used to be commit f9182bbe628cb5f5395a08b2e09d4a282a99d7dc)
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-55/+113
| | | | | | No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
* Fix the build. fstrterminate was used in one place.Jeremy Allison2007-12-031-2/+2
| | | | | Jeremy. (This used to be commit 0ccd87c56b34bdc34c73d700d21544fe269f9141)
* Remove more pstring. Unify talloc_sub functions to makeJeremy Allison2007-11-191-2/+6
| | | | | | | them a better match for replacing string_sub. Remove more unused code. Jeremy. (This used to be commit ae7885711f504f1442335f09088cbe149a7e00f9)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-14/+14
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r16243: Fix Klocwork bugs #581 and #706, ensure we checkJeremy Allison2007-10-101-616/+667
| | | | | | | the end of array first in the loop. Reformat to modern standards. Jeremy. (This used to be commit 66275bd3bc56e67759dbabe77cb2ba019c6f4887)
* r16230: Fix Klocwork #861 and others. localtime and asctimeJeremy Allison2007-10-101-52/+67
| | | | | | can return NULL. Ensure we check all returns correctly. Jeremy. (This used to be commit 6c61dc8ed6d84f310ef391fb7700e93ef42c4afc)
* r14003: Clarify code that lead to Coverity report #13.Jeremy Allison2007-10-101-1/+1
| | | | | | Not a bug, but better to remove false positives. Jeremy. (This used to be commit f9a75d76546bc4618736f0d48646e77d7572db25)
* r3067: patch based on volker's initial work in trunk that fixes the queu ↵Gerald Carter2007-10-101-3/+3
| | | | | | update problem when using the background daemon (This used to be commit de7af09e727e744aa27af85ef7c0f73ed5c1550a)
* Added strstr_m() function. Use in all places where we might run into mbJeremy Allison2004-03-091-3/+3
| | | | | | (should fix the mb service name problem, can't remember the bugid). Jeremy. (This used to be commit 94a272b9a881ec0004c5da2a7242b0a818da5630)
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-4/+4
| | | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
* Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2003-07-031-1/+1
| | | | | | | | strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
* removing printing = SOFTQ since no one knows what it isGerald Carter2003-04-291-83/+0
| | | | (This used to be commit 283953472229952f7f2613a207515580cd0919c3)
* Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett2003-04-231-32/+32
| | | | | | | | | | | | | a pstrcpy/fstrcpy or at most a safe_strcpy(). These have the advantage of being compiler-verifiable. Get these out of the way, along with a rewrite of 'get_short_archi' in the spoolss client and server. (This pushes around const string pointers, rather than copied strings). Andrew Bartlett (This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
* Fix for little-used lpq parser.Jeremy Allison2003-03-051-1/+1
| | | | | Jeremy. (This used to be commit 75b36459ab1797bdff98ed91d7870bd48adebb54)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-4/+4
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-18/+22
| | | | | | | 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)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-8/+10
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* printing merge from HEADGerald Carter2002-04-221-20/+12
| | | | (This used to be commit d3aed37dd87d425f51bcdc4e5151f0b0fe8f9c6b)
* syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2002-03-151-36/+36
| | | | | | | | | | | | | | 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 5760315c1de4033fdc22684c940f18010010924f)
* FIXME: Use next_token rather than strtok!Martin Pool2002-02-261-0/+1
| | | | (This used to be commit d56b8a30c5ca55b718ad706875aa6579a48a0768)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-15/+15
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* Patch from itegem <J.P.M.v.Itegem@ele.tue.nl> to handle LPRng v3.16 and above.Jeremy Allison2001-03-271-11/+30
| | | | | Jeremy (This used to be commit 40bccf26dbdb88c639d272d511bfce510a43de2a)
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-141-0/+51
| | | | | | | | | | - merged Tim's vlp (virtual lp) test program. Enable it with -DDEVELOPER or by using ./configure.developer (source/include/smb.h source/configure.developer source/printing/lpq_parse.c source/param/loadparm.c testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp testsuite/printing/vlp.c) (This used to be commit fbcf83140da1823e74f63227f0a95d07c6e76764)
* We already have a perfectly good next_token() function we should be usingJeremy Allison2000-10-251-6/+3
| | | | | | | | instead of strtok - this fixes a bug with NT users with spaces in their names when using winbindd. Needs to be added to the other parse_lpXX functions (currently only added to lprng parsing code). Jeremy. (This used to be commit c3e4ac9a2db32c40ce330de0eab4bc82ef4fd579)
* Integrated support for NT and OS/2 lpq parsing. Code fromJeremy Allison2000-10-071-0/+163
| | | | | | | | | | Jim McDonough Infoprint Manager Development Linux Technology Center IBM Boulder Jeremy. (This used to be commit d9eedd5db1728be8e23d73c954db13bbbcadf3fb)
* - use full_name instead of real_nameAndrew Tridgell2000-05-041-10/+0
| | | | | - got rid of guest map code in lpq parser (This used to be commit 8e53f781d3cf6a7007764916a0d8e8f1abea1f66)
* split out the lpq parsing code into a separate fileAndrew Tridgell2000-04-101-0/+883
printing/lpq_parse.c getting ready for the new printing backend (This used to be commit 0ec1072e0143952139be64e8001582eadcc9f60e)