From 0e6799177c5d1c0904a904d4ff705d33d74d7d56 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 8 Sep 2004 11:01:18 +0000 Subject: r2252: don't register the same name twice (This used to be commit fdb675bbad1322ddd94c646f67803b9678468a64) --- source4/ntvfs/posix/vfs_posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix/vfs_posix.c') diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index fb53f87f27..ee70e79835 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -284,7 +284,6 @@ NTSTATUS ntvfs_posix_init(void) ZERO_STRUCT(ops); - ops.name = "default"; ops.type = NTVFS_DISK; /* fill in all the operations */ @@ -319,9 +318,10 @@ NTSTATUS ntvfs_posix_init(void) /* register ourselves with the NTVFS subsystem. We register under the name 'default' as we wish to be the default backend, and also register as 'posix' */ - ops.name = "posix"; + ops.name = "default"; ret = register_backend("ntvfs", &ops); + ops.name = "posix"; ret = register_backend("ntvfs", &ops); if (!NT_STATUS_IS_OK(ret)) { -- cgit