git-annex/CmdLine
Joey Hess 8a4cfd4f2d
use getSymbolicLinkStatus not getFileStatus to avoid crash on broken symlink
Fix crash importing from a directory special remote that contains a broken
symlink.

The crash was in listImportableContentsM but some other places in
Remote.Directory also seemed like they could have the same problem.

Also audited for other places that have such a problem. Not all calls
to getFileStatus are bad, in some cases it's better to crash on something
unexpected. For example, `git-annex import path` when the path is a broken
symlink should crash, the same as when it does not exist. Many of the
getFileStatus calls are like that, particularly when they involve
.git/annex/objects which should never have a broken symlink in it.

Fixed a few other possible cases of the problem.

Sponsored-by: Lawrence Brogan on Patreon
2022-09-05 13:46:32 -04:00
..
GitAnnex add --dry-run: New option 2022-08-03 11:16:04 -04:00
GitAnnexShell remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
Action.hs --size-limit exit 101 2021-06-04 16:43:47 -04:00
AnnexSetter.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Batch.hs reject batch options combined with non-batch options 2022-01-26 13:00:19 -04:00
GitAnnex.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
GitAnnexShell.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
GitRemoteTorAnnex.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Option.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Seek.hs use getSymbolicLinkStatus not getFileStatus to avoid crash on broken symlink 2022-09-05 13:46:32 -04:00
Usage.hs improve synopsis 2020-12-17 12:51:49 -04:00