diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-29 17:25:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-29 17:25:41 -0800 |
commit | f692694b99319ef1f534ea29f001922656402cdf (patch) | |
tree | d571e437f4ac8b96f1575d3a9732f2354c0065ae /source3/utils | |
parent | b05ffb50652c00c721dc085ffd0938e9e6aa019b (diff) | |
download | samba-f692694b99319ef1f534ea29f001922656402cdf.tar.gz samba-f692694b99319ef1f534ea29f001922656402cdf.tar.bz2 samba-f692694b99319ef1f534ea29f001922656402cdf.zip |
Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
(This used to be commit cc257b71d13daa47e6f2315d0f07a60eb4aaeca6)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index a89f1bf81a..e6a7e954fd 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -3591,11 +3591,12 @@ static void copy_fn(const char *mnt, file_info *f, const char *mask, void *state bool sync_files(struct copy_clistate *cp_clistate, pstring mask) { struct cli_state *targetcli; - pstring targetpath; + char *targetpath = NULL; DEBUG(3,("calling cli_list with mask: %s\n", mask)); - if ( !cli_resolve_path( "", cp_clistate->cli_share_src, mask, &targetcli, targetpath ) ) { + if ( !cli_resolve_path(talloc_tos(), "", cp_clistate->cli_share_src, + mask, &targetcli, &targetpath ) ) { d_fprintf(stderr, "cli_resolve_path %s failed with error: %s\n", mask, cli_errstr(cp_clistate->cli_share_src)); return False; |