summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-04-21 14:19:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:20 -0500
commitee0588bb6fbfbb250f5f2a3373556b100f2eb399 (patch)
tree48bc2955b05ef720db1288bd40c526cf850a7f08 /source4/ntvfs/simple
parent7feebcb33a615c77d8885d625cfc70c501760233 (diff)
downloadsamba-ee0588bb6fbfbb250f5f2a3373556b100f2eb399.tar.gz
samba-ee0588bb6fbfbb250f5f2a3373556b100f2eb399.tar.bz2
samba-ee0588bb6fbfbb250f5f2a3373556b100f2eb399.zip
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)
Diffstat (limited to 'source4/ntvfs/simple')
-rw-r--r--source4/ntvfs/simple/vfs_simple.c10
1 files changed, 1 insertions, 9 deletions
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;
}