]> git.pld-linux.org Git - packages/fusesmb.git/blob - fusesmb-more_debug.patch
- release 2
[packages/fusesmb.git] / fusesmb-more_debug.patch
1
2 # HG changeset patch
3 # User Vincent Wagelaar <vincent@ricardis.tudelft.nl>
4 # Date 1195499953 -3600
5 # Node ID e5ab49358d539ecd07fb959e0d47c1d507c24d44
6 # Parent bfe5900f95a82b60a488a75d73451e3130c8b9c5
7 Add more debug statements
8
9 --- a/fusesmb.c Mon Nov 19 20:14:51 2007 +0100
10 +++ b/fusesmb.c Mon Nov 19 20:19:13 2007 +0100
11 @@ -362,6 +362,7 @@ static int fusesmb_opendir(const char *p
12          return 0;
13      SMBCFILE *dir;
14      char smb_path[MY_MAXPATHLEN] = "smb:/";
15 +    debug("%s", path);
16      strcat(smb_path, stripworkgroup(path));
17      pthread_mutex_lock(&ctx_mutex);
18      dir = ctx->opendir(ctx, smb_path);
19 @@ -698,6 +699,7 @@ static int fusesmb_release(const char *p
20  static int fusesmb_release(const char *path, struct fuse_file_info *fi)
21  {
22      (void)path;
23 +    debug("%s", path);
24      pthread_mutex_lock(&rwd_ctx_mutex);
25  #ifdef HAVE_LIBSMBCLIENT_CLOSE_FN
26      rwd_ctx->close_fn(rwd_ctx, (SMBCFILE *)fi->fh);
27 @@ -723,7 +725,7 @@ static int fusesmb_mknod(const char *pat
28      //  return -EACCES;
29      if (slashcount(path) <= 3)
30          return -EACCES;
31 -
32 +    debug("%s", path);
33      strcat(smb_path, stripworkgroup(path));
34      pthread_mutex_lock(&ctx_mutex);
35      if ((file = ctx->creat(ctx, smb_path, mode)) == NULL)
36 @@ -769,10 +771,9 @@ static int fusesmb_unlink(const char *fi
37  static int fusesmb_unlink(const char *file)
38  {
39      char smb_path[MY_MAXPATHLEN] = "smb:/";
40 -
41 +    debug("%s", file);
42      if (slashcount(file) <= 3)
43          return -EACCES;
44 -
45      strcat(smb_path, stripworkgroup(file));
46      pthread_mutex_lock(&ctx_mutex);
47      if (ctx->unlink(ctx, smb_path) < 0)
48 @@ -787,7 +788,7 @@ static int fusesmb_rmdir(const char *pat
49  static int fusesmb_rmdir(const char *path)
50  {
51      char smb_path[MY_MAXPATHLEN] = "smb:/";
52 -
53 +    debug("%s", path);
54      if (slashcount(path) <= 3)
55          return -EACCES;
56  
57 @@ -806,7 +807,7 @@ static int fusesmb_mkdir(const char *pat
58  static int fusesmb_mkdir(const char *path, mode_t mode)
59  {
60      char smb_path[MY_MAXPATHLEN] = "smb:/";
61 -
62 +    debug("%s", path);
63      if (slashcount(path) <= 3)
64          return -EACCES;
65  
66 @@ -866,6 +867,7 @@ static int fusesmb_utime(const char *pat
67  
68  static int fusesmb_chmod(const char *path, mode_t mode)
69  {
70 +    debug("%s", path);
71      if (slashcount(path) <= 3)
72          return -EPERM;
73  
74 @@ -943,7 +945,7 @@ static int fusesmb_rename(const char *pa
75  {
76      char smb_path[MY_MAXPATHLEN]     = "smb:/",
77           new_smb_path[MY_MAXPATHLEN] = "smb:/";
78 -
79 +    debug("from: %s, to: %s", path, new_path);
80      if (slashcount(path) <= 3 || slashcount(new_path) <= 3)
81          return -EACCES;
82  
83
This page took 0.088408 seconds and 3 git commands to generate.