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:
parent
2cbbbe3535
commit
0e6799177c
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user