Skip to content

Commit

Permalink
use plain telldir
Browse files Browse the repository at this point in the history
  • Loading branch information
r2r-dev committed May 14, 2021
1 parent 59c5012 commit 58142a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/qemu/9p-darwin.patch
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ index c40bfd50a1..9ee66ba5c2 100644
+ * However, it does not appear to be supported on all file systems,
+ * so use telldir for correctness.
+ */
+ return v9fs_co_telldir(pdu, fidp);
+ return telldir(fidp->fs.dir.stream);
+#else
+ return dent->d_off;
+#endif
Expand Down Expand Up @@ -381,7 +381,7 @@ index 1f70a58df5..5a4109eab8 100644

size += len;
+#ifdef CONFIG_DARWIN
+ saved_dir_pos = v9fs_co_telldir(pdu, fidp);
+ saved_dir_pos = telldir(fidp->fs.dir.stream);
+#else
saved_dir_pos = dent->d_off;
+#endif
Expand Down

0 comments on commit 58142a0

Please sign in to comment.