comment
authorJoey Hess <joeyh@joeyh.name>
Mon, 9 Aug 2021 17:03:19 +0000 (13:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 9 Aug 2021 17:03:19 +0000 (13:03 -0400)
doc/bugs/git-annex__58___readDirStream__58___inappropriate_type/comment_1_1b988c92ae79e6d9ddc487bea358dec1._comment [new file with mode: 0644]

diff --git a/doc/bugs/git-annex__58___readDirStream__58___inappropriate_type/comment_1_1b988c92ae79e6d9ddc487bea358dec1._comment b/doc/bugs/git-annex__58___readDirStream__58___inappropriate_type/comment_1_1b988c92ae79e6d9ddc487bea358dec1._comment
new file mode 100644 (file)
index 0000000..7a2d819
--- /dev/null
@@ -0,0 +1,22 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2021-08-09T16:52:53Z"
+ content="""
+It seems likely to me that the directory you're trying to use git-annex in
+either no longer exists, or is in some other strange state.
+
+I can get close to this error message by asking for 
+the contents of the directory "/etc/passwd". Of course,
+that file is not a directory.
+
+       ghci> System.Directory.getDirectoryContents "/etc/passwd"
+       *** Exception: /etc/passwd: getDirectoryContents:openDirStream: inappropriate type (Not a directory)
+
+I have not found a way to make readDirStream throw the error, but this
+shows that the problem is basically something to do with getting directory
+contents.
+
+stracing git-annex might shed some more light on how the `readdir()`
+syscall is failing.
+"""]]