From f54b9f2389e1953ec4b82f8c29d6fd0793faa67a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 9 Aug 2021 13:03:19 -0400 Subject: [PATCH] comment --- ..._1b988c92ae79e6d9ddc487bea358dec1._comment | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/bugs/git-annex__58___readDirStream__58___inappropriate_type/comment_1_1b988c92ae79e6d9ddc487bea358dec1._comment 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 index 0000000000..7a2d8199e1 --- /dev/null +++ b/doc/bugs/git-annex__58___readDirStream__58___inappropriate_type/comment_1_1b988c92ae79e6d9ddc487bea358dec1._comment @@ -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. +"""]] -- 2.30.2