1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
Volker Lendecke 9391dad85d Fix error code when smbclient puts a file over an existing directory
Windows returns NT_STATUS_FILE_IS_A_DIRECTORY, as does Samba 3.0. 3.2 and
following returned NT_STATUS_INVALID_PARAMETER which is wrong.

Before I converted reply_open_and_X to create_file() we called
open_file_ntcreate directly. Passing through open&X for a filename that exists
as a directory ends up in open_directory after having tried open_file_ntcreate.
Some check in there returns NT_STATUS_INVALID_PARAMETER. With this additional
FILE_NON_DIRECTORY_FILE flag we get the correct error message back from
create_file_unixpath before trying open_directory().

Survives make test, but as this also touches the other open variants I would
like others to review this.

Volker
2008-12-12 17:56:41 +01:00
..
2008-12-11 00:00:50 +01:00
2008-10-12 17:34:43 +02:00
2008-12-10 11:58:28 +01:00
2008-11-13 12:43:58 +01:00
2008-01-15 10:43:43 +01:00
2008-12-08 22:09:34 +01:00
2008-10-06 09:54:16 +02:00
2008-11-13 12:43:58 +01:00
2008-08-13 15:25:09 +02:00