Skip to content

Commit

Permalink
Increment iRODS_l_dev_wrapper on every use.
Browse files Browse the repository at this point in the history
So far, iRODS_l_dev_wrapper was incremented only when getting a value
for a directory but not for a file.

Assuming this was an oversight, changing the code to always increment
the value...
  • Loading branch information
vladimir-mencl-eresearch committed Feb 8, 2015
1 parent 1d0adfd commit ba52dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions globus_gridftp_server_iRODS.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ iRODS_l_stat1(
stat_out->ctime = realTime;
stat_out->mtime = realTime;
stat_out->atime = realTime;
stat_out->dev = iRODS_l_dev_wrapper;
stat_out->dev = iRODS_l_dev_wrapper++;
stat_out->ino = iRODS_l_filename_hash(start_dir);
stat_out->mode = S_IFREG | S_IRUSR | S_IWUSR |
S_IXUSR | S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP;
Expand Down Expand Up @@ -395,7 +395,7 @@ iRODS_l_stat_dir(
stat_array[stat_ndx].ctime = realTime;
stat_array[stat_ndx].mtime = realTime;
stat_array[stat_ndx].atime = realTime;
stat_array[stat_ndx].dev = iRODS_l_dev_wrapper;
stat_array[stat_ndx].dev = iRODS_l_dev_wrapper++;
stat_array[stat_ndx].ino = iRODS_l_filename_hash(collEnt.dataName);
stat_array[stat_ndx].mode = S_IFREG | S_IRUSR | S_IWUSR |
S_IXUSR | S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP;
Expand Down

0 comments on commit ba52dbb

Please sign in to comment.