Volker Lendecke
4be583493a
lib: Remove unused file_lines_slashcont
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-09-17 00:31:21 +02:00
Volker Lendecke
e8996582c6
lib: Move "large_file_support()" to the source4 smb server
...
That's the only place where it's used, make it static there.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-09-17 00:31:21 +02:00
Björn Baumbach
63d98ed904
CVE-2013-4476: lib-util: split out file_save_mode() from file_save()
...
file_save_mode() writes files with specified mode.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-11-11 11:14:36 +01:00
Stefan Metzmacher
b6026dfa94
lib/util: remove the "includes.h" dependeny from util_file.c
...
metze
2011-10-22 09:28:26 +02:00
Volker Lendecke
62bea12c5d
s3: Don't use talloc_autofree_context in map_file
2010-10-20 18:09:19 +02:00
Andrew Tridgell
ae95d611b6
util: added file_compare() utility function
...
file_compare() returns true if two files are the same. It is meant for
small files.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-11 21:04:13 +11:00
Slava Semushin
5f8df16471
lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.
...
Found by cppcheck:
[./lib/util/util_file.c:383]: (error) Resource leak: fd
2009-07-19 16:00:39 +02:00
Jelmer Vernooij
3189d14152
Use the new memory macro file from Samba 3.
2008-10-18 14:07:51 +02:00
Jelmer Vernooij
1b99d8fbb5
Use common util_file code.
2008-10-12 17:34:43 +02:00
Jelmer Vernooij
caa4e42860
Move lib/util from source4 to top-level libutil.
...
Conflicts:
source4/Makefile
2008-10-11 21:05:38 +02:00