Skip to content

Commit

Permalink
[65] On receiving a file from client, set the O_CREAT flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinKyleJames committed May 7, 2024
1 parent e262401 commit 946bf88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DSI/globus_gridftp_server_iRODS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ globus_l_gfs_iRODS_recv(
globus_gfs_log_message(GLOBUS_GFS_LOG_INFO, "iRODS: %s called\n", __FUNCTION__);

globus_l_gfs_iRODS_handle_t * iRODS_handle;
int flags = O_WRONLY;
int flags = O_WRONLY | O_CREAT;
char * collection = nullptr;
//char * handle_server;
dataObjInp_t dataObjInp;
Expand Down Expand Up @@ -2085,7 +2085,7 @@ globus_l_gfs_iRODS_recv(

if(transfer_info->truncate)
{
flags |= O_TRUNC | O_CREAT;
flags |= O_TRUNC;
}

memset (&dataObjInp, 0, sizeof (dataObjInp));
Expand Down

0 comments on commit 946bf88

Please sign in to comment.