Changeset 862 for trunk/server/source3/modules/vfs_catia.c
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source3/modules/vfs_catia.c
r745 r862 11 11 * Copyright (C) Volker Lendecke, 2005 12 12 * Copyright (C) Aravind Srinivasan, 2009 13 * Copyright (C) Guenter Kukkukk, 2013 13 14 * 14 15 * This program is free software; you can redistribute it and/or modify … … 29 30 #include "includes.h" 30 31 #include "smbd/smbd.h" 32 33 static int vfs_catia_debug_level = DBGC_VFS; 34 35 #undef DBGC_CLASS 36 #define DBGC_CLASS vfs_catia_debug_level 31 37 32 38 #define GLOBAL_SNUM 0xFFFFFFF … … 296 302 char *name = NULL; 297 303 char *mapped_name; 298 NTSTATUS ret;304 NTSTATUS status, ret; 299 305 300 306 /* … … 309 315 return NT_STATUS_NO_MEMORY; 310 316 } 311 ret= catia_string_replace_allocate(handle->conn, name,317 status = catia_string_replace_allocate(handle->conn, name, 312 318 &mapped_name, direction); 313 319 314 320 TALLOC_FREE(name); 315 if (!NT_STATUS_IS_OK( ret)) {316 return ret;321 if (!NT_STATUS_IS_OK(status)) { 322 return status; 317 323 } 318 324 … … 322 328 if (NT_STATUS_EQUAL(ret, NT_STATUS_NONE_MAPPED)) { 323 329 *pmapped_name = talloc_move(mem_ctx, &mapped_name); 330 /* we need to return the former translation result here */ 331 ret = status; 324 332 } else { 325 333 TALLOC_FREE(mapped_name); … … 1021 1029 NTSTATUS vfs_catia_init(void) 1022 1030 { 1023 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia", 1031 NTSTATUS ret; 1032 1033 ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia", 1024 1034 &vfs_catia_fns); 1025 } 1035 if (!NT_STATUS_IS_OK(ret)) 1036 return ret; 1037 1038 vfs_catia_debug_level = debug_add_class("catia"); 1039 if (vfs_catia_debug_level == -1) { 1040 vfs_catia_debug_level = DBGC_VFS; 1041 DEBUG(0, ("vfs_catia: Couldn't register custom debugging " 1042 "class!\n")); 1043 } else { 1044 DEBUG(10, ("vfs_catia: Debug class number of " 1045 "'catia': %d\n", vfs_catia_debug_level)); 1046 } 1047 1048 return ret; 1049 1050 }
Note:
See TracChangeset
for help on using the changeset viewer.