[Samba] Confusion berween file and direcory
TAKAHASHI Motonobu
monyo at monyo.com
Thu May 26 09:50:36 MDT 2011
From: Felix <fb at ltec.ch>
Date: Thu, 26 May 2011 14:28:07 +0000 (UTC)
> I have some trouble with a samba 3.5.8 server when setting directory
> attributes. On a windows XP I execute a small peace of code that calls
> 'SetFileAttributes' for the directory 'test-dir' located on the samba
> server. Using log level 10 I find this:
(snip)
> [2011/05/26 15:27:02.145766, 10] smbd/open.c:170(fd_open)
> fd_open: name test-dir, flags = 01 mode = 0764, fd = -1. Is a directory
> [2011/05/26 15:27:02.145779, 3] smbd/open.c:461(open_file)
> Error opening file test-dir (NT_STATUS_FILE_IS_A_DIRECTORY)
> (local_flags=1) (flags=1)
>
> As I said, 'test-dir' is a directory. If my understand of the log is
> correct samba confuses a directory with a file? Why would this happen?
The patch attached at
Newly create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY
https://bugzilla.samba.org/show_bug.cgi?id=8042
maybe solve you problem??
---
TAKAHASHI Motonobu <monyo at samba.gr.jp>
More information about the samba
mailing list