diff options
author | Gerald Carter <jerry@samba.org> | 2006-08-03 15:19:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:30 -0500 |
commit | 22c9a3151e1aba83b6a72612440a230fd70f1e5a (patch) | |
tree | 73f298f94b596df06e1c820037e42a254740651a | |
parent | e5f6544df10ca923d9408de9df1cedbabb2987af (diff) | |
download | samba-22c9a3151e1aba83b6a72612440a230fd70f1e5a.tar.gz samba-22c9a3151e1aba83b6a72612440a230fd70f1e5a.tar.bz2 samba-22c9a3151e1aba83b6a72612440a230fd70f1e5a.zip |
r17386: fix inverted logic pointed out by Volker. When deleting a printer return access denied if the printer still exists after the delete_printer_hook() is called
(This used to be commit c05e2bdc0c068eb832035daea7962ab1a9e787b2)
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index fc25614963..6548bf3c6d 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -331,7 +331,7 @@ WERROR delete_printer_hook( NT_USER_TOKEN *token, const char *sharename ) /* go ahead and re-read the services immediately */ reload_services( False ); - if ( !share_defined( sharename ) ) + if ( share_defined( sharename ) ) return WERR_ACCESS_DENIED; return WERR_OK; |