From ee0588bb6fbfbb250f5f2a3373556b100f2eb399 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 21 Apr 2004 14:19:03 +0000 Subject: r312: let ntvfs posix backend return NT_STATUS_ACCESS_DENIED in the connect hook and print out an error message to the debug log which say: use 'cifs' or 'simple' as ntvfs handler this also warns about 'root' fileaccess in the 'simple' module the 'default' ntvfs handler is now registered by the posix backend metze (This used to be commit 84b3589daa60cfdd2c868d9468192b0a6e1eebae) --- source4/ntvfs/simple/vfs_simple.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source4/ntvfs/simple/vfs_simple.c') diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index c2ad7d7aa4..e36e4a62c4 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -948,7 +948,7 @@ NTSTATUS ntvfs_simple_init(void) ops.trans = svfs_trans; /* register ourselves with the NTVFS subsystem. We register - under two names 'simple' and 'default' + under names 'simple' */ ops.name = "simple"; ret = register_backend("ntvfs", &ops); @@ -958,13 +958,5 @@ NTSTATUS ntvfs_simple_init(void) ops.name)); } - /* also register as "default" */ - ops.name = "default"; - ret = register_backend("ntvfs", &ops); - if (!NT_STATUS_IS_OK(ret)) { - DEBUG(0,("Failed to register simple backend with name: %s!\n", - ops.name)); - } - return ret; } -- cgit