From eac27adfb3b7b2afe293a4e394cd84b870302d02 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 7 Apr 2003 18:05:35 +0000 Subject: remove unnened and wrong instructions (This used to be commit 671579874e51b28ffdfc094cdf34a0090567e0cc) --- source3/modules/vfs_recycle.c | 2 -- 1 file changed, 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) { -- cgit