1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

collaps same repeted task into 2 code paths

(This used to be commit bc5d1873da187c83a1a19a7560685ed903d37455)
This commit is contained in:
Simo Sorce 2003-04-09 17:36:33 +00:00
parent 4235c93fe8
commit 525d18a2b0

View File

@ -555,11 +555,10 @@ static int recycle_unlink(connection_struct *conn, const char *file_name)
/* see if we need to recreate the original directory structure in the recycle bin */
if (recbin->keep_dir_tree == True) {
asprintf(&temp_name, "%s/%s", recbin->repository, path_name);
ALLOC_CHECK(temp_name, done);
} else {
temp_name = strdup(recbin->repository);
ALLOC_CHECK(temp_name, done);
}
ALLOC_CHECK(temp_name, done);
exist = recycle_directory_exist(conn, temp_name);
if (exist) {