summaryrefslogtreecommitdiff
path: root/source3/modules/onefs_streams.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-06 15:44:09 -0700
committerTim Prouty <tprouty@samba.org>2009-07-07 21:33:48 -0700
commitdad913118344922139401ee5afaec8f3e68e05dd (patch)
treea41532995bb4a6cd759108d26b86c35603a96211 /source3/modules/onefs_streams.c
parent7ca59ffe5a6608ac865e6fe403b17638af09595a (diff)
downloadsamba-dad913118344922139401ee5afaec8f3e68e05dd.tar.gz
samba-dad913118344922139401ee5afaec8f3e68e05dd.tar.bz2
samba-dad913118344922139401ee5afaec8f3e68e05dd.zip
s3 onefs: Fix a few bugs from the smb_filename migration
Diffstat (limited to 'source3/modules/onefs_streams.c')
-rw-r--r--source3/modules/onefs_streams.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/modules/onefs_streams.c b/source3/modules/onefs_streams.c
index 91917eef44..d33d9f30a2 100644
--- a/source3/modules/onefs_streams.c
+++ b/source3/modules/onefs_streams.c
@@ -463,14 +463,12 @@ int onefs_lstat(vfs_handle_struct *handle, struct smb_filename *smb_fname)
}
int onefs_unlink(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
+ const struct smb_filename *smb_fname)
{
struct smb_filename *smb_fname_onefs = NULL;
int ret;
- bool is_stream;
- char *base = NULL;
- char *stream = NULL;
int dir_fd, saved_errno;
+ NTSTATUS status;
/* Not a stream. */
if (!is_ntfs_stream_smb_fname(smb_fname)) {
@@ -520,10 +518,6 @@ int onefs_vtimes_streams(vfs_handle_struct *handle,
START_PROFILE(syscall_ntimes);
- ret = onefs_is_stream(fname, &base, &stream, &is_stream);
- if (ret)
- return ret;
-
if (!is_ntfs_stream_smb_fname(smb_fname)) {
ret = vtimes(smb_fname->base_name, times, flags);
return ret;