summaryrefslogtreecommitdiff
path: root/source4/libcli/clifile.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-24source4/libcli: Only set ctemp set on successSam Lang1-7/+8
If open fails ctemp.out.name probably won't be valid and strdup will cause a segv. Only set the path if open succeeds. Signed-off-by: Sam Lang <sam.lang@inktank.com> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 24 23:58:44 CEST 2013 on sn-devel-104
2011-05-06libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett1-28/+0
unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
2010-02-02Change uint_t to unsigned int in source4Matt Kraai1-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell1-1/+1
In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
2008-05-15use a newer fsinfo level in smbclient, to support larger disksAndrew Tridgell1-5/+6
(This used to be commit 1acc8077fb86c1e78724b010d149db166d98238d)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-4/+5
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r14946: added a smbcli_ftruncate() call, useful for torture testingAndrew Tridgell1-7/+16
(This used to be commit b8b9acc60003c86fb1f0377b46f65155c3b898a9)
2007-10-10r14938: add smbcli_fsetatr() as a convenient interface to a setfileinfo forAndrew Tridgell1-0/+23
torture testing. Used by RAW-NOTIFY. (This used to be commit 517db1b1b0061be57c67ea02d42000fb8ace844d)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-16/+16
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-22/+22
a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r13658: More moving around of files:Jelmer Vernooij1-0/+1
- Collect the generic utility functions into a lib/util/ (a la GLib is for the GNOME folks) - Remove even more files from include/ (This used to be commit ba62880f5b05c2a505dc7f54676b231197a7e707)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-4/+4
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r3454: moved a few more things out if includes.h into the include/system/ ↵Andrew Tridgell1-0/+1
include files. this brings us down to about 11k lines of headers included with includes.h, while still retaining the speed of building with pch (This used to be commit 10188869ef072309ca580b8b933e172571fcdda7)
2007-10-10r3441: some include file cleanups and general housekeepingAndrew Tridgell1-3/+3
(This used to be commit 73ea8ee6c268371d05cf74160f2ad451dd2ae699)
2007-10-10r3419: moved the libcli/raw structures into libcli/raw/libcliraw.hAndrew Tridgell1-0/+1
and made them private (This used to be commit 386ac565c452ede1d74e06acb401ca9db99d3ff3)
2007-10-10r2405: expose unix_perms_to_wire() for use by the posix backend, in ↵Andrew Tridgell1-1/+1
supporting the UNIX extensions (This used to be commit a3fd9a911f8852372a57146cde04971263fac7c9)
2007-10-10r1654: rename cli_ -> smbcli_Stefan Metzmacher1-32/+32
rename CLI_ -> SMBCLI_ metze (This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
2007-10-10r1627: make sure we initialise write_time in the deprecated function cli_ctemp()Andrew Tridgell1-0/+1
(This used to be commit 48b5b740f1d0c252f248aa944d8487a83c016fa1)
2007-10-10r962: convert 'unsigned' and 'unsigned int' to uint_tStefan Metzmacher1-2/+2
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10r960: convert 'unsigned int' to uint_t in the most placesStefan Metzmacher1-1/+1
metze (This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)
2007-10-10r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher1-1/+1
metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher1-1/+1
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher1-3/+3
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher1-10/+10
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2004-02-21The file descriptor argument to cli_getattrE() is a fnum not a fd.Tim Potter1-2/+2
(This used to be commit f172b6f1d08b7de040cde4a7d88708e5af29a3a4)
2004-02-10Convert libcli routines to return NTSTATUS instead of BOOL. Again, theTim Potter1-56/+64
only users are smbclient and smbtorture. (This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10)
2004-02-08Convert libcli routines to use cli_tree instead of cli_state. PortTim Potter1-66/+75
smbtorture to use the new interface. Part 2 will be to eliminate cli_state from smbtorture as this is now the only place where it is used. (This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)
2003-08-15more fixes from the IRIX compiler (thanks herb!)Andrew Tridgell1-2/+2
(This used to be commit 4cf3839b727c77a727abb558bd9473119a092913)
2003-08-14client/client.c - cannot initialize struct with non-const valuesHerb Lewis1-2/+2
include/byteorder.h - fix for IRIX compiler - cannot cast an LVALUE include/smb_interfaces.h - remove empty structure source/lib/debug.c - void functions cannot return value libcli/clifile.c - cannot assign *struct to struct (This used to be commit 9a724762012f55d21d44ea87add7daf21f7414d1)
2003-08-13- added SMBntrename test suiteAndrew Tridgell1-4/+5
- allow username of form DOMAIN\username or DOMAIN/username - added ntrename to gentest (This used to be commit 2b464472c17b791eb5b117f89d5aaea2bf60f6ad)
2003-08-13first public release of samba4 codeAndrew Tridgell1-0/+647
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)