Jeremy Allison
9eee6e2fd2
More const fixes... getting near the end now.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 6 00:57:00 CEST 2011 on sn-devel-104
2011-05-06 00:57:00 +02:00
Jeremy Allison
f85e095dd2
More simple const fixups.
2011-05-05 23:56:08 +02:00
Jeremy Allison
8380835fc6
Fix warning messages caused by addition of null check in fstrcpy macro.
2011-05-04 12:12:15 -07:00
Jeremy Allison
df023b8657
Tidy up some missing checks for NULL in strlcpy.
2011-05-04 12:12:15 -07:00
Jeremy Allison
6f7c4a0539
Convert safe_strXX to strlXXX. Clean up off-by-ones.
2011-05-04 12:12:15 -07:00
Jeremy Allison
0c464df22b
Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the original macro auto-added the -1.
2011-05-04 12:12:14 -07:00
Andrew Bartlett
724915f721
s3-client Add TALLOC_CTX argument to attrib_string().
...
This ensures the caller knows where the memory was allocated.
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
0520da2bbe
s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCH
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0eca33bbf6
s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIR
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
0a3c84b554
s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEM
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:13 +10:00
Andrew Bartlett
317e19aeb3
s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDEN
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Andrew Bartlett
7f66ebde2e
s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLY
...
This means we use just one constant for this file attribute.
Andrew Bartlett
2011-04-29 16:38:12 +10:00
Volker Lendecke
0226428eb9
s3: Use cli_writeall instead of cli_write
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
25b43d317f
s3: Use cli_ntcreate to when listing snapshots
...
This works for directories as well
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 14:37:02 CEST 2011 on sn-devel-104
2011-03-30 14:37:02 +02:00
Günther Deschner
2473c2fb1b
s3-libsmb: put namequery headers to nmblib.h
...
We might find a better name for it and merge other namequery related things as
well here...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
49fcf653b1
s3-includes: only include system/passwd.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
99f4a64543
s3-trans2: only include trans2.h where needed.
...
Guenther
2011-03-30 01:13:06 +02:00
Volker Lendecke
7c868e6174
s3: Fix Coverity ID 83: RESOURCE_LEAK
2011-03-27 22:22:10 +02:00
Volker Lendecke
b47b4c9e3d
s3: Remove two calls to cli_errstr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 27 13:17:47 CEST 2011 on sn-devel-104
2011-03-27 13:17:47 +02:00
Günther Deschner
7a91282c9f
s3-libsmb: only include rap client when needed.
...
Guenther
2011-03-15 21:16:35 +01:00
Volker Lendecke
dee53e04ba
s3: Print all flags in "smbclient allinfo"
2011-03-02 18:39:21 +01:00
Andreas Schneider
bf18403c81
s3-rpc_client: Move client pipe functions to own header.
2011-02-28 18:15:04 +01:00
Volker Lendecke
5b26cfe143
s3: Eliminate sys_select from do_smb_resolve() -- untested
2011-02-28 16:40:20 +01:00
Volker Lendecke
b28a2e519a
s3: Eliminate sys_select from do_smb_browse() -- untested
2011-02-28 16:40:19 +01:00
Volker Lendecke
e6f8208358
s3: Eliminiate sys_select_intr from client.c
2011-02-28 16:40:19 +01:00
Björn Baumbach
07ccc2905d
s3-smbclient: Fix cli_errstr() usage (part of bug #7864 )
...
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan 25 11:41:53 CET 2011 on sn-devel-104
2011-01-25 11:41:53 +01:00
Björn Baumbach
09c612f377
s3-smbclient: Fix cli_errstr() usage (part of bug #7864 )
...
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-25 10:45:22 +01:00
Volker Lendecke
d3abc90401
s3: Avoid a few calls to cli_errstr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jan 17 08:47:25 CET 2011 on sn-devel-104
2011-01-17 08:47:25 +01:00
Günther Deschner
fccfd29283
s3-smbclient: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:11:29 +01:00
Volker Lendecke
28d997a890
s3: AllowDebugChange is gone
2010-12-28 17:18:14 +01:00
Volker Lendecke
bfc4fe4012
s3: Remove unused "retry" from cli_start_connection
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
2010-12-20 17:58:33 +01:00
Volker Lendecke
e0e4dc1c22
s3: Add shadow copy info to smbclient allinfo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 30 12:23:50 CET 2010 on sn-devel-104
2010-11-30 12:23:50 +01:00
Volker Lendecke
ddd33f0351
s3: Make cli_set_ea_path return NTSTATUS
2010-11-11 16:16:24 +00:00
Andrew Bartlett
ed111d11eb
s3-debug Move 'load_case_tables()' before lp_set_cmdline() and popt calls
...
The problem here is that we cannot run lp_set_cmdline() (directly or
indirectly via the popt helpers) until load_case_tables() has been run.
However, load_case_tables does not have auto-initialisation, so we
must init it once, and once only.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Andrew Bartlett
cf4de8ec2c
s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead
...
By removing this global variable, the API between the two different
debug systems is made more similar. Both s3 and s4 now have
lp_set_cmdline() which ensures that the smb.conf cannot overwrite
these the user-specified log level.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Andrew Bartlett
9da4ace1d9
s3-debug Impove setup_logging() to specify logging to stderr
...
This change improves the setup_logging() API so that callers which
wish to set up logging to stderr can simply ask for it, rather than
directly modify the dbf global variable.
Andrew Bartlett
2010-11-02 04:36:04 +00:00
Jeremy Allison
14ff2e8de9
Fix bug #7700 - Improvement of return code of smbclient
...
Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>.
Convert cli_list and associated functions to take calls that return NTSTATUS.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104
2010-10-29 19:40:16 +00:00
Volker Lendecke
40cc1a3d2e
s3: Add "setea" to smbclient
2010-10-24 20:46:28 +00:00
Volker Lendecke
86cb0ad242
s3: Add "geteas" to smbclient
2010-10-24 20:46:28 +00:00
Volker Lendecke
c095809c04
s3: Convert cli_qfileinfo_basic to cli_qfileinfo
2010-10-24 11:39:30 +02:00
Volker Lendecke
03333fc68c
s3: Rename cli_fileinfo() to cli_fileinfo_basic()
2010-10-24 11:39:29 +02:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Günther Deschner
0ff7e0c998
samba: share readline wrappers among all buildsystems.
...
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
405b7d843f
s3-readline: move cmd_history to smbclient, the only user.
...
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
b38d0542e1
samba: share select wrappers.
...
Guenther
2010-10-01 22:30:22 +02:00
Björn Jacke
10eefd85c9
s3: fix order of arguments in nsec_time_diff call
2010-09-17 13:49:11 +02:00
Björn Jacke
aada719694
s3: use nsec_time_diff instead of TspecDiff
2010-09-16 21:38:20 +02:00
Björn Jacke
5728b0fb5f
s3: use monotonic clock for time deltas in smbtar
2010-08-31 10:26:09 +02:00
Björn Jacke
fc67675028
s3: use monotonic clock for time deltas in smbclient
2010-08-31 10:26:04 +02:00