Browse Source

fix shares listing for macos x which was broken by file upload commit

Sylver Bruneau 9 years ago
parent
commit
3bf3595054
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/smb_share.c

+ 1 - 1
src/smb_share.c

@@ -243,7 +243,7 @@ size_t          smb_share_get_list(smb_session *s, char ***list)
     if (ipc_tid == -1)
         return 0;
 
-    srvscv_fd = smb_fopen(s, ipc_tid, "\\srvsvc", SMB_MOD_RW);
+    srvscv_fd = smb_fopen(s, ipc_tid, "\\srvsvc", SMB_MOD_READ | SMB_MOD_WRITE);
     if (!srvscv_fd)
         return 0;