diff options
author | Simo Sorce <idra@samba.org> | 2003-04-07 18:05:35 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-04-07 18:05:35 +0000 |
commit | eac27adfb3b7b2afe293a4e394cd84b870302d02 (patch) | |
tree | 50e72d6027763606806c61709678eddfd78774b2 /source3/modules | |
parent | 3b89c0656c800177cbb086041978ab65450e5d5a (diff) | |
download | samba-eac27adfb3b7b2afe293a4e394cd84b870302d02.tar.gz samba-eac27adfb3b7b2afe293a4e394cd84b870302d02.tar.bz2 samba-eac27adfb3b7b2afe293a4e394cd84b870302d02.zip |
remove unnened and wrong instructions
(This used to be commit 671579874e51b28ffdfc094cdf34a0090567e0cc)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_recycle.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index 100db69cb6..18056fe796 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -521,7 +521,6 @@ static int recycle_unlink(connection_struct *conn, const char *file_name) /* extract filename and path */ path_name = (char *)malloc(PATH_MAX); ALLOC_CHECK(path_name, done); - *path_name = '\0'; safe_strcpy(path_name, file_name, PATH_MAX - 1); base = strrchr(path_name, '/'); if (base == NULL) { @@ -555,7 +554,6 @@ static int recycle_unlink(connection_struct *conn, const char *file_name) temp_name = (char *)malloc(PATH_MAX); ALLOC_CHECK(temp_name, done); safe_strcpy(temp_name, recbin->repository, PATH_MAX - 1); - *temp_name = '\0'; /* see if we need to recreate the original directory structure in the recycle bin */ if (recbin->keep_dir_tree == True) { |