Fix srvsvc_Net[Get|Set]FileSecurity
commit2646fce6338216372af6f6b3198995adfbad90dd
authorVolker Lendecke <vl@samba.org>
Sun, 27 Jul 2008 15:59:15 +0000 (27 17:59 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Jul 2008 15:59:15 +0000 (27 17:59 +0200)
tree81bdf1bc0353aa4c31194f03e0a9ead83f2a24d2
parent49403ee82f5b4a40f4feacd441b2e27f23e6c156
Fix srvsvc_Net[Get|Set]FileSecurity

There were two bugs in those routines: They did not send INTERNAL_OPEN_ONLY to
open_file_ntcreate() and they did not chdir, so the file could never be found.

While there I decided to remove the become_root() calls and call create_file()
instead of the lower-level routines.
(This used to be commit 669771738422776f8c81086ffea4924b62d72957)
source3/rpc_server/srv_srvsvc_nt.c