1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r2252: don't register the same name twice

(This used to be commit fdb675bbad1322ddd94c646f67803b9678468a64)
This commit is contained in:
Andrew Tridgell 2004-09-08 11:01:18 +00:00 committed by Gerald (Jerry) Carter
parent 2cbbbe3535
commit 0e6799177c

View File

@ -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)) {