summaryrefslogtreecommitdiffstats
path: root/source/lib/util_file.c
Commit message (Collapse)AuthorAgeFilesLines
* oops. must return "" string and length zero when strlen(filebuf) == 0Luke Leighton2000-08-181-13/+16
|
* getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]Luke Leighton2000-08-181-10/+13
| | | | is NOT ok.
* - added some error checkingAndrew Tridgell2000-04-301-1/+1
| | | | - removed the VTP hook in smbd
* fixed some crash bugs in the nt forms parsingAndrew Tridgell2000-04-181-0/+2
|
* converted a couple more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-0/+23
| | | | | added a new utility fn file_lines_slashcont() which is used to handle files that treat a \ followed by a newline as a blank
* converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-11/+91
| | | | | | | 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
* added fdprintf()Andrew Tridgell2000-04-161-2/+4
| | | | | | | this is like fprintf() but operates on a file descriptor combined with file_load_lines() this makes it really easy to get rid of the use of fopen() in Samba.
* the new file_lines_load() and file_lines_free() routines. Very useful!Andrew Tridgell2000-04-161-0/+64
| | | | | | | | | | | | | | | | | | | | | ------------ 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.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-54/+16
|
* Jean-Francois spotted bug in use of file_modified() routine submittedLuke Leighton1999-07-261-1/+1
| | | | recently.
* code from bertl to allow remap of default built-in names to anything.Luke Leighton1999-07-141-7/+46
| | | | | parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
* renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()Luke Leighton1999-07-131-8/+7
| | | | | | as they are generic "file line-by-line" reading routines. lines with "#" at the front are ignored (as comments). this code started out as the password file reading code.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-1/+1
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* util_file.c:Luke Leighton1998-11-051-0/+329
split some routines out of various places (e.g smbpass.c) because they now get used in more than one location. util_sid.c: need sid_copy, compare, split rid, append rid etc etc...