summaryrefslogtreecommitdiffstats
path: root/source/lib/util_file.c
Commit message (Collapse)AuthorAgeFilesLines
* fix compile error on HP-UX 10.20Gerald Carter2003-09-081-0/+5
|
* More printf portability fixes. Got caught out by some gcc'isms lastTim Potter2003-07-251-2/+2
| | | | time. )-:
* More printf fixes - size_t is long on some architectures.Tim Potter2003-07-241-1/+1
|
* Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett2003-02-241-2/+5
| | | | Andrew Bartlett
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-3/+6
|
* Don't hold the mutex for more than 20 seconds.Jeremy Allison2002-03-261-1/+1
| | | | Jeremy.
* lower the debug level of failing to map a fileAndrew Tridgell2002-03-151-1/+1
|
* Removed version number from file header.Tim Potter2002-01-301-1/+2
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* obey "use mmap" on case tablesAndrew Tridgell2001-12-171-11/+13
|
* initial kerberos/ADS/SPNEGO support in libsmb and smbclient. ToAndrew Tridgell2001-10-111-0/+17
| | | | | | | | | | activate you need to: - install krb5 libraries - run configure - build smbclient - run kinit to get a TGT - run smbclient with the -k option to choose kerberos auth
* switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell2001-10-031-0/+35
| | | | | | | | | | | | | | | | | | | | | | for unicode strings. The new method relies on 3 files that are mmap'd at startup to provide the mapping tables. The upcase.dat and lowcase.dat tables should be the same on all systems. The valid.dat table says what characters are valid in 8.3 names, and differs between systems. I'm committing the japanese valid.dat here, in future we need some way of automatically installing and choosing a appropriate table. This commit also adds my mini tdb based gettext replacement in intl/lang_tdb.c. I have not enabled this yet and have not removed the old gettext code as the new code is still being looked at by Monyo. Right now the code assumes that the upcase.dat, lowcase.dat and valid.dat files are installed in the Samba lib directory. That is not a good choice, but I'll leave them there until we work out the new install directory structure for Samba 3.0. simo - please look at the isvalid_w() function and think about using it in your new mangling code. That should be the final step to correctly passing the chargen test code from monyo.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* Add a few const statements to various odd bits of the tree. (Fixes someAndrew Bartlett2001-09-291-2/+2
| | | | warnings)
* move to SAFE_FREE()Simo Sorce2001-09-171-7/+7
|
* convert more code to use XFILEAndrew Tridgell2001-09-101-3/+3
|
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-7/+15
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* Some fixes about malloc/Realloc and mem leakSimo Sorce2001-08-051-1/+3
| | | | thanks to andreas moroder
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-1/+1
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-16/+9
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-131-12/+40
| | | | | be read. Jeremy.
* Fixed typo causing coredump in file_lines_parse.Jeremy Allison2000-12-091-1/+1
| | | | Jeremy.
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-071-7/+14
| | | | | on read. Jeremy.
* Allow zero length smb.conf files.Tim Potter2000-12-011-2/+0
|
* 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...