Skip to content

Commit 5bcc155

Browse files
simeonschaubrofinn
authored andcommitted
fix isfifo(::SystemPath)
ref #184 (comment)
1 parent 2dd3e8d commit 5bcc155

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/path.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Base.isdir(fp::AbstractPath) = isdir(mode(fp))
544544
Base.isfile(fp::AbstractPath) = isfile(mode(fp))
545545
Base.islink(fp::AbstractPath) = islink(lstat(fp).mode)
546546
Base.issocket(fp::AbstractPath) = issocket(mode(fp))
547-
Base.isfifo(fp::AbstractPath) = issocket(mode(fp))
547+
Base.isfifo(fp::AbstractPath) = isfifo(mode(fp))
548548
Base.ischardev(fp::AbstractPath) = ischardev(mode(fp))
549549
Base.isblockdev(fp::AbstractPath) = isblockdev(mode(fp))
550550

src/system.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Base.isdir(fp::SystemPath) = isdir(mode(fp))
9898
Base.isfile(fp::SystemPath) = isfile(mode(fp))
9999
Base.islink(fp::SystemPath) = islink(lstat(fp).mode)
100100
Base.issocket(fp::SystemPath) = issocket(mode(fp))
101-
Base.isfifo(fp::SystemPath) = issocket(mode(fp))
101+
Base.isfifo(fp::SystemPath) = isfifo(mode(fp))
102102
Base.ischardev(fp::SystemPath) = ischardev(mode(fp))
103103
Base.isblockdev(fp::SystemPath) = isblockdev(mode(fp))
104104

test/testpkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ FilePathsBase.isdir(fp::TestPath) = isdir(mode(fp))
5353
Base.isfile(fp::TestPath) = isfile(mode(fp))
5454
Base.islink(fp::TestPath) = islink(lstat(fp).mode)
5555
Base.issocket(fp::TestPath) = issocket(mode(fp))
56-
Base.isfifo(fp::TestPath) = issocket(mode(fp))
56+
Base.isfifo(fp::TestPath) = isfifo(mode(fp))
5757
Base.ischardev(fp::TestPath) = ischardev(mode(fp))
5858
Base.isblockdev(fp::TestPath) = isblockdev(mode(fp))
5959
Base.ismount(fp::TestPath) = ismount(test2posix(fp))

0 commit comments

Comments
 (0)