r8019: Better give a hint that we are failing share-manipulation due to missing
authorGünther Deschner <gd@samba.org>
Thu, 30 Jun 2005 15:19:54 +0000 (15:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:58:08 +0000 (10:58 -0500)
scripts.

Guenther

source/rpc_server/srv_srvsvc_nt.c

index 91f0cefa98b39ccf0be90dab19bcf78245c9e33e..f8124031ce038928d4a0a701980e7fb903ac9320 100644 (file)
@@ -1634,8 +1634,10 @@ WERROR _srv_net_share_set_info(pipes_struct *p, SRV_Q_NET_SHARE_SET_INFO *q_u, S
        
        if (strcmp(path, lp_pathname(snum)) || strcmp(comment, lp_comment(snum)) ) 
        {
-               if (!lp_change_share_cmd() || !*lp_change_share_cmd()) 
+               if (!lp_change_share_cmd() || !*lp_change_share_cmd()) {
+                       DEBUG(10,("_srv_net_share_set_info: No change share command\n"));
                        return WERR_ACCESS_DENIED;
+               }
 
                slprintf(command, sizeof(command)-1, "%s \"%s\" \"%s\" \"%s\" \"%s\"",
                                lp_change_share_cmd(), dyn_CONFIGFILE, share_name, path, comment);
@@ -1870,8 +1872,10 @@ WERROR _srv_net_share_del(pipes_struct *p, SRV_Q_NET_SHARE_DEL *q_u, SRV_R_NET_S
        if (user.uid != sec_initial_uid()  && !is_disk_op ) 
                return WERR_ACCESS_DENIED;
 
-       if (!lp_delete_share_cmd() || !*lp_delete_share_cmd())
+       if (!lp_delete_share_cmd() || !*lp_delete_share_cmd()) {
+               DEBUG(10,("_srv_net_share_del: No delete share command\n"));
                return WERR_ACCESS_DENIED;
+       }
                
        slprintf(command, sizeof(command)-1, "%s \"%s\" \"%s\"",
                        lp_delete_share_cmd(), dyn_CONFIGFILE, lp_servicename(snum));