summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-07 11:17:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:08 -0500
commit2aee8406676a2698ae55f9fe7b29b62fdb475fa9 (patch)
treef77b2a8fae2dc49ff5c1336bc64ebb001ccbfb46 /source4/ntvfs
parent7304bb8d7d2fcafb1be291a97cd8edd3943fa81c (diff)
downloadsamba-2aee8406676a2698ae55f9fe7b29b62fdb475fa9.tar.gz
samba-2aee8406676a2698ae55f9fe7b29b62fdb475fa9.tar.bz2
samba-2aee8406676a2698ae55f9fe7b29b62fdb475fa9.zip
r112: the simple backend now registers as both "simple" and "default"
so older smb.conf settings will work (This used to be commit 6f6285ce603b55b1c68cf54621e22aa777b6c5c5)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/simple/vfs_simple.c18
1 files changed, 14 insertions, 4 deletions
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;