From 2aee8406676a2698ae55f9fe7b29b62fdb475fa9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 7 Apr 2004 11:17:58 +0000 Subject: r112: the simple backend now registers as both "simple" and "default" so older smb.conf settings will work (This used to be commit 6f6285ce603b55b1c68cf54621e22aa777b6c5c5) --- source4/ntvfs/simple/vfs_simple.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index 6e51d8a638..18f6559510 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -889,7 +889,6 @@ NTSTATUS ntvfs_simple_init(void) ZERO_STRUCT(ops); /* fill in the name and type */ - ops.name = "simple"; ops.type = NTVFS_DISK; /* fill in all the operations */ @@ -921,12 +920,23 @@ NTSTATUS ntvfs_simple_init(void) ops.search_close = svfs_search_close; ops.trans = svfs_trans; - /* register ourselves with the NTVFS subsystem. We register under the name 'default' - as we wish to be the default backend */ + /* register ourselves with the NTVFS subsystem. We register + under two names 'simple' and 'default' + */ + ops.name = "simple"; ret = register_backend("ntvfs", &ops); if (!NT_STATUS_IS_OK(ret)) { - DEBUG(0,("Failed to register POSIX backend!\n")); + DEBUG(0,("Failed to register simple backend with name: %s!\n", + 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