gvfs r1773 - in trunk: . daemon



Author: gicmo
Date: Wed May 21 09:03:57 2008
New Revision: 1773
URL: http://svn.gnome.org/viewvc/gvfs?rev=1773&view=rev

Log:
Add GVFS_SMB_DEBUG env variable to control smb debugging.


Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendsmb.c

Modified: trunk/daemon/gvfsbackendsmb.c
==============================================================================
--- trunk/daemon/gvfsbackendsmb.c	(original)
+++ trunk/daemon/gvfsbackendsmb.c	Wed May 21 09:03:57 2008
@@ -457,6 +457,8 @@
   char *uri;
   int res;
   char *display_name;
+  const char *debug;
+  int debug_val;
   GMountSpec *smb_mount_spec;
   smbc_stat_fn smbc_stat;
 
@@ -470,7 +472,13 @@
     }
   smbc_setOptionUserData (smb_context, backend);
 
-  smbc_setDebug (smb_context, 0);
+  debug = g_getenv ("GVFS_SMB_DEBUG");
+  if (debug)
+    debug_val = atoi (debug);
+  else
+    debug_val = 0;
+
+  smbc_setDebug (smb_context, debug_val);
   smbc_setFunctionAuthDataWithContext (smb_context, auth_callback);
   
   smbc_setFunctionAddCachedServer (smb_context, add_cached_server);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]