Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

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

    r429 r745  
    2020
    2121#include "includes.h"
     22#include "smbd/smbd.h"
     23#include "system/filesys.h"
    2224
    2325#undef DBGC_CLASS
     
    199201}
    200202
     203static SMB_STRUCT_DIR *atalk_fdopendir(struct vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr)
     204{
     205        SMB_STRUCT_DIR *ret = 0;
     206
     207        ret = SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr);
     208
     209        if (ret == NULL) {
     210                return ret;
     211        }
     212
     213        /*
     214         * when we try to perform delete operation upon file which has fork
     215         * in ./.AppleDouble and this directory wasn't hidden by Samba,
     216         * MS Windows explorer causes the error: "Cannot find the specified file"
     217         * There is some workaround to avoid this situation, i.e. if
     218         * connection has not .AppleDouble entry in either veto or hide
     219         * list then it would be nice to add one.
     220         */
     221
     222        atalk_add_to_list(&handle->conn->hide_list);
     223        atalk_add_to_list(&handle->conn->veto_list);
     224
     225        return ret;
     226}
     227
    201228static int atalk_rmdir(struct vfs_handle_struct *handle, const char *path)
    202229{
     
    433460static struct vfs_fn_pointers vfs_netatalk_fns = {
    434461        .opendir = atalk_opendir,
     462        .fdopendir = atalk_fdopendir,
    435463        .rmdir = atalk_rmdir,
    436464        .rename = atalk_rename,
Note: See TracChangeset for help on using the changeset viewer.