From b3d1e3d4c720729c8f14e413a285660547ee677a Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 15 May 2017 03:27:54 +0430 Subject: [PATCH] fs: fix realpath{Sync} on resolving pipes/sockets PR-URL: https://github.com/nodejs/node/pull/13028 Reviewed-By: Refael Ackermann --- doc/api/fs.md | 12 +++++++++ lib/fs.js | 18 ++++++++++---- test/parallel/test-fs-realpath-pipe.js | 34 ++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 test/parallel/test-fs-realpath-pipe.js diff --git a/doc/api/fs.md b/doc/api/fs.md index e185bdc5cb..beb60973bb 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1840,6 +1840,9 @@ Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`.