Displaying 1 result from an estimated 1 matches for "file_was_created".
2009 May 18
0
Re: [smbd][PATCH] Writing EAs when overriding files
...opening existing files, it should be set to null."
>
> And usually the OS/2 file system API is nearly a 1:1 image of the
> LANMAN2 protocol.
>
>
> The relating code is in open.c in the function create_file (samba 3.2)
>
> - if ((ea_list != NULL) && (info == FILE_WAS_CREATED)) {
> + if ((ea_list != NULL) && (info != FILE_WAS_OPENED)) {
> status = set_ea(conn, fsp, fname, ea_list);
> if (!NT_STATUS_IS_OK(status)) {
> goto fail;
> }
> }
>
>
> The same applies to samba 3.0. But the related code is located in
> trans2.c in...