diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-29 18:26:02 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-29 18:26:02 -0700 |
commit | 370e7209dbafce147a5e9f283d9dcc53c72bce99 (patch) | |
tree | 28a832c3f7ef67d79940d1cbbc5bc604b766ddd7 /source3/libsmb/libsmb_dir.c | |
parent | edd25980b03c5fac154967e51705ac1cdb8d4091 (diff) | |
download | samba-370e7209dbafce147a5e9f283d9dcc53c72bce99.tar.gz samba-370e7209dbafce147a5e9f283d9dcc53c72bce99.tar.bz2 samba-370e7209dbafce147a5e9f283d9dcc53c72bce99.zip |
Make cli_unlink async.
Jeremy.
Diffstat (limited to 'source3/libsmb/libsmb_dir.c')
-rw-r--r-- | source3/libsmb/libsmb_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index bc5e35f79b..d230275685 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -1760,7 +1760,7 @@ SMBC_unlink_ctx(SMBCCTX *context, } /*d_printf(">>>unlink: resolved path as %s\n", targetpath);*/ - if (!cli_unlink(targetcli, targetpath)) { + if (!NT_STATUS_IS_OK(cli_unlink(targetcli, targetpath, aSYSTEM | aHIDDEN))) { errno = SMBC_errno(context, targetcli); @@ -1966,7 +1966,7 @@ SMBC_rename_ctx(SMBCCTX *ocontext, int eno = SMBC_errno(ocontext, targetcli1); if (eno != EEXIST || - !cli_unlink(targetcli1, targetpath2) || + !NT_STATUS_IS_OK(cli_unlink(targetcli1, targetpath2, aSYSTEM | aHIDDEN)) || !NT_STATUS_IS_OK(cli_rename(targetcli1, targetpath1, targetpath2))) { errno = eno; |