[Samba] Confusion berween file and direcory

Felix fb at ltec.ch
Mon May 30 08:14:29 MDT 2011


On Fri, 27 May 2011 00:50:36 +0900, TAKAHASHI Motonobu wrote:

> 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>

This patch deals with problems during file creation. I do not have a 
problems creating files or directories. The problem occurs when trying to 
modify the attributes of a directory.

Felix



More information about the samba mailing list