Ignore:
Timestamp:
May 13, 2014, 11:39:04 AM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update trunk to 3.6.23

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/modules/vfs_catia.c

    r745 r862  
    1111 * Copyright (C) Volker Lendecke, 2005
    1212 * Copyright (C) Aravind Srinivasan, 2009
     13 * Copyright (C) Guenter Kukkukk, 2013
    1314 *
    1415 * This program is free software; you can redistribute it and/or modify
     
    2930#include "includes.h"
    3031#include "smbd/smbd.h"
     32
     33static int vfs_catia_debug_level = DBGC_VFS;
     34
     35#undef DBGC_CLASS
     36#define DBGC_CLASS vfs_catia_debug_level
    3137
    3238#define GLOBAL_SNUM     0xFFFFFFF
     
    296302        char *name = NULL;
    297303        char *mapped_name;
    298         NTSTATUS ret;
     304        NTSTATUS status, ret;
    299305
    300306        /*
     
    309315                return NT_STATUS_NO_MEMORY;
    310316        }
    311         ret = catia_string_replace_allocate(handle->conn, name,
     317        status = catia_string_replace_allocate(handle->conn, name,
    312318                        &mapped_name, direction);
    313319
    314320        TALLOC_FREE(name);
    315         if (!NT_STATUS_IS_OK(ret)) {
    316                 return ret;
     321        if (!NT_STATUS_IS_OK(status)) {
     322                return status;
    317323        }
    318324
     
    322328        if (NT_STATUS_EQUAL(ret, NT_STATUS_NONE_MAPPED)) {
    323329                *pmapped_name = talloc_move(mem_ctx, &mapped_name);
     330                /* we need to return the former translation result here */
     331                ret = status;
    324332        } else {
    325333                TALLOC_FREE(mapped_name);
     
    10211029NTSTATUS vfs_catia_init(void)
    10221030{
    1023         return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia",
     1031        NTSTATUS ret;
     1032
     1033        ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia",
    10241034                                &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.