? BATCH_OPLOCK : 0;
}
- /*
- * Now contruct the smb_open_mode value from the filename,
- * desired access and the share access.
- */
status = resolve_dfspath(ctx, conn,
req->flags2 & FLAGS2_DFS_PATHNAMES,
fname,
/* Save the requested allocation size. */
if ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN)) {
- if (allocation_size && (allocation_size > (SMB_BIG_UINT)file_len)) {
- fsp->initial_allocation_size = smb_roundup(fsp->conn, allocation_size);
+ if (allocation_size
+ && (allocation_size > (SMB_BIG_UINT)file_len)) {
+ fsp->initial_allocation_size = smb_roundup(
+ fsp->conn, allocation_size);
if (fsp->is_directory) {
close_file(fsp,ERROR_CLOSE);
/* Can't set allocation size on a directory. */
* Get the file name.
*/
- if(root_dir_fid != 0) {
+ if (root_dir_fid != 0) {
/*
* This filename is relative to a directory fid.
*/
*/
if( is_ntfs_stream_name(fname)) {
- reply_nterror(req,
- NT_STATUS_OBJECT_PATH_NOT_FOUND);
+ reply_nterror(
+ req, NT_STATUS_OBJECT_PATH_NOT_FOUND);
return;
}
*/
parent_fname = TALLOC_ARRAY(ctx, char, dir_name_len+2);
- if (!fname) {
+ if (!parent_fname) {
reply_nterror(req, NT_STATUS_NO_MEMORY);
return;
}
? BATCH_OPLOCK : 0;
}
- /*
- * Ordinary file or directory.
- */
-
status = resolve_dfspath(ctx, conn,
req->flags2 & FLAGS2_DFS_PATHNAMES,
fname,
&fname);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(case_state);
if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) {
reply_botherror(req, NT_STATUS_PATH_NOT_COVERED,
ERRSRV, ERRbadpath);
/* Save the requested allocation size. */
if ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN)) {
- if (allocation_size && (allocation_size > file_len)) {
- fsp->initial_allocation_size = smb_roundup(fsp->conn, allocation_size);
+ if (allocation_size
+ && (allocation_size > (SMB_BIG_UINT)file_len)) {
+ fsp->initial_allocation_size = smb_roundup(
+ fsp->conn, allocation_size);
if (fsp->is_directory) {
close_file(fsp,ERROR_CLOSE);
/* Can't set allocation size on a directory. */