summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-08 11:01:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:35 -0500
commit0e6799177c5d1c0904a904d4ff705d33d74d7d56 (patch)
tree92858cbc0b555047ccaef181a8ed5c0f014e47ff /source4/ntvfs
parent2cbbbe35352e2833a1acceb757538db69f5db5f0 (diff)
downloadsamba-0e6799177c5d1c0904a904d4ff705d33d74d7d56.tar.gz
samba-0e6799177c5d1c0904a904d4ff705d33d74d7d56.tar.bz2
samba-0e6799177c5d1c0904a904d4ff705d33d74d7d56.zip
r2252: don't register the same name twice
(This used to be commit fdb675bbad1322ddd94c646f67803b9678468a64)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c4
1 files changed, 2 insertions, 2 deletions
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)) {