diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-21 05:52:34 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-21 05:52:34 -0700 |
commit | dfc79de607e94179114a8e1d0b0e56117f34595b (patch) | |
tree | 4e717d763a1c19f0cb1926804e6f977d56a0cec5 /source3/utils | |
parent | 4024abb0a80e5ec10dd2f86b378bcea89b919050 (diff) | |
download | samba-dfc79de607e94179114a8e1d0b0e56117f34595b.tar.gz samba-dfc79de607e94179114a8e1d0b0e56117f34595b.tar.bz2 samba-dfc79de607e94179114a8e1d0b0e56117f34595b.zip |
Make cli_mkdir async. Change it to return NTSTATUS.
Jeremy.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 9721628f02..477ddf7f26 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -406,7 +406,7 @@ NTSTATUS net_copy_file(struct net_context *c, DEBUGADD(3,("creating dir %s on the destination server\n", dst_name)); - if (!cli_mkdir(cli_share_dst, dst_name)) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli_share_dst, dst_name))) { DEBUG(0,("cannot create directory %s: %s\n", dst_name, cli_errstr(cli_share_dst))); nt_status = NT_STATUS_NO_SUCH_FILE; @@ -555,7 +555,7 @@ static NTSTATUS check_arch_dir(struct cli_state *cli_share, const char *short_ar DEBUG(10,("creating print-driver dir for architecture: %s\n", short_archi)); - if (!cli_mkdir(cli_share, dir)) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli_share, dir))) { DEBUG(1,("cannot create directory %s: %s\n", dir, cli_errstr(cli_share))); nt_status = NT_STATUS_NO_SUCH_FILE; |