Skip to content

Commit ba52dbb

Browse files
Increment iRODS_l_dev_wrapper on every use.
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...
1 parent 1d0adfd commit ba52dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

globus_gridftp_server_iRODS.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ iRODS_l_stat1(
287287
stat_out->ctime = realTime;
288288
stat_out->mtime = realTime;
289289
stat_out->atime = realTime;
290-
stat_out->dev = iRODS_l_dev_wrapper;
290+
stat_out->dev = iRODS_l_dev_wrapper++;
291291
stat_out->ino = iRODS_l_filename_hash(start_dir);
292292
stat_out->mode = S_IFREG | S_IRUSR | S_IWUSR |
293293
S_IXUSR | S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP;
@@ -395,7 +395,7 @@ iRODS_l_stat_dir(
395395
stat_array[stat_ndx].ctime = realTime;
396396
stat_array[stat_ndx].mtime = realTime;
397397
stat_array[stat_ndx].atime = realTime;
398-
stat_array[stat_ndx].dev = iRODS_l_dev_wrapper;
398+
stat_array[stat_ndx].dev = iRODS_l_dev_wrapper++;
399399
stat_array[stat_ndx].ino = iRODS_l_filename_hash(collEnt.dataName);
400400
stat_array[stat_ndx].mode = S_IFREG | S_IRUSR | S_IWUSR |
401401
S_IXUSR | S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP;

0 commit comments

Comments
 (0)