summaryrefslogtreecommitdiff
path: root/source4/libcli/clideltree.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-30 05:37:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:15 -0500
commit607e3022381ab089bfcc0b153461b6b3ac76f175 (patch)
tree2b29f170a778868b877f38a902408eb1e68721e3 /source4/libcli/clideltree.c
parentc33283df20df633ce969ea71bbfb6f62af35fdd9 (diff)
downloadsamba-607e3022381ab089bfcc0b153461b6b3ac76f175.tar.gz
samba-607e3022381ab089bfcc0b153461b6b3ac76f175.tar.bz2
samba-607e3022381ab089bfcc0b153461b6b3ac76f175.zip
r4013: got rid of a bunch of unused or unmaintained code
- removed the clitar code. It is unmaintained, and a horribly badly done hack - removed client.h as it contained mostly unused definitions - removed the unused clidfs.c code (This used to be commit 31a7bddbb3815b4d625e993dbce4805dae1c18f8)
Diffstat (limited to 'source4/libcli/clideltree.c')
-rw-r--r--source4/libcli/clideltree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/libcli/clideltree.c b/source4/libcli/clideltree.c
index 7dd3803735..30369b977f 100644
--- a/source4/libcli/clideltree.c
+++ b/source4/libcli/clideltree.c
@@ -19,7 +19,7 @@
*/
#include "includes.h"
-#include "client.h"
+#include "clilist.h"
struct delete_state {
struct smbcli_tree *tree;
@@ -30,7 +30,7 @@ struct delete_state {
/*
callback function for torture_deltree()
*/
-static void delete_fn(struct file_info *finfo, const char *name, void *state)
+static void delete_fn(struct clilist_file_info *finfo, const char *name, void *state)
{
struct delete_state *dstate = state;
char *s, *n;
@@ -41,14 +41,14 @@ static void delete_fn(struct file_info *finfo, const char *name, void *state)
n[strlen(n)-1] = 0;
asprintf(&s, "%s%s", n, finfo->name);
- if (finfo->mode & FILE_ATTRIBUTE_READONLY) {
+ if (finfo->attrib & FILE_ATTRIBUTE_READONLY) {
if (NT_STATUS_IS_ERR(smbcli_setatr(dstate->tree, s, 0, 0))) {
DEBUG(2,("Failed to remove READONLY on %s - %s\n",
s, smbcli_errstr(dstate->tree)));
}
}
- if (finfo->mode & FILE_ATTRIBUTE_DIRECTORY) {
+ if (finfo->attrib & FILE_ATTRIBUTE_DIRECTORY) {
char *s2;
asprintf(&s2, "%s\\*", s);
smbcli_unlink(dstate->tree, s2);