diff --git a/find/find.c b/find/find.c
index 2c63677..f70e5dd 100644
--- a/find/find.c
+++ b/find/find.c
@@ -1618,8 +1618,18 @@ process_dir (char *pathname, char *name, int pathlen, struct stat *statp, char *
                * of what we think we should see later.
                * If there was no change, the assignments are a no-op.
                */
+/* MEOLIC: BUG FIXING */
+#if defined O_NOFOLLOW  
+          if (options.open_nofollow_available){}
+          else {
+                dir_ids[dir_curr].dev = stat_buf.st_dev;
+                dir_ids[dir_curr].ino = stat_buf.st_ino;
+          }
+#else
               dir_ids[dir_curr].dev = stat_buf.st_dev;
               dir_ids[dir_curr].ino = stat_buf.st_ino;
+#endif
+/* MEOLIC: END OF FIX */
               break;
       
             case SafeChdirFailWouldBeUnableToReturn:
