diff options
author | Tim Potter <tpot@samba.org> | 2001-09-12 01:14:03 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-12 01:14:03 +0000 |
commit | a39d4c052c2787f97957d432c0faa337144778f8 (patch) | |
tree | 23e54d1d354dfda13773eb279eb649df67fd0fbd /source3/libsmb | |
parent | db9ba1f875510d2c3fa7faa2104a032096837d05 (diff) | |
download | samba-a39d4c052c2787f97957d432c0faa337144778f8.tar.gz samba-a39d4c052c2787f97957d432c0faa337144778f8.tar.bz2 samba-a39d4c052c2787f97957d432c0faa337144778f8.zip |
Converted DFS error returns to WERROR instead of uint32.
(This used to be commit 97286570ef6f9151b5fe0be32aa4b294e7db9ab8)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cli_dfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/cli_dfs.c b/source3/libsmb/cli_dfs.c index b1ad01e748..d900d95bb2 100644 --- a/source3/libsmb/cli_dfs.c +++ b/source3/libsmb/cli_dfs.c @@ -123,7 +123,7 @@ NTSTATUS cli_dfs_remove(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_struct qbuf, rbuf; DFS_Q_DFS_REMOVE q; DFS_R_DFS_REMOVE r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + WERROR result = WERR_BADFUNC; ZERO_STRUCT(q); ZERO_STRUCT(r); @@ -156,7 +156,7 @@ NTSTATUS cli_dfs_remove(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_mem_free(&qbuf); prs_mem_free(&rbuf); - return result; + return NT_STATUS_OK; } NTSTATUS cli_dfs_get_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, @@ -167,7 +167,7 @@ NTSTATUS cli_dfs_get_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_struct qbuf, rbuf; DFS_Q_DFS_GET_INFO q; DFS_R_DFS_GET_INFO r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + WERROR result = WERR_BADFUNC; ZERO_STRUCT(q); ZERO_STRUCT(r); @@ -202,7 +202,7 @@ NTSTATUS cli_dfs_get_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_mem_free(&qbuf); prs_mem_free(&rbuf); - return result; + return NT_STATUS_OK; /* Should return a WERROR */ } /* Enumerate dfs shares */ @@ -213,7 +213,7 @@ NTSTATUS cli_dfs_enum(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_struct qbuf, rbuf; DFS_Q_DFS_ENUM q; DFS_R_DFS_ENUM r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + WERROR result = WERR_BADFUNC; ZERO_STRUCT(q); ZERO_STRUCT(r); @@ -248,5 +248,5 @@ NTSTATUS cli_dfs_enum(struct cli_state *cli, TALLOC_CTX *mem_ctx, prs_mem_free(&qbuf); prs_mem_free(&rbuf); - return result; + return NT_STATUS_OK; } |