Skip to content

Commit cdbacb2

Browse files
carlocabBrewTestBot
authored andcommitted
mosh: fix crashes from out-of-sync timestamps
Let's apply the patches from mobile-shell/mosh#1124 that are intended to fix mobile-shell/mosh#1014. The patch makes sense, and several users have successfully used the patch for quite some time now. Fixes Homebrew/discussions#2583. Closes #90580. Signed-off-by: Michka Popoff <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
1 parent 1d4351f commit cdbacb2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Formula/mosh.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Mosh < Formula
22
desc "Remote terminal application"
33
homepage "https://mosh.org"
44
license "GPL-3.0-or-later"
5-
revision 16
5+
revision 17
66

77
stable do
88
url "https://mosh.org/mosh-1.3.2.tar.gz"
@@ -20,6 +20,19 @@ class Mosh < Formula
2020
url "https://raw.githubusercontent.com/macports/macports-ports/72fb5d9a79e581a5033bce38fb00ee25a0c2fdfe/net/mosh/files/patch-version-subdir.diff"
2121
sha256 "939e5435ce7d9cecb7b2bccaf31294092eb131b5bd41d5776a40d660ffc95982"
2222
end
23+
24+
# Fix crashes when mosh gets confused by timestamps. See:
25+
# https://github.com/mobile-shell/mosh/issues/1014
26+
# https://github.com/mobile-shell/mosh/pull/1124
27+
patch do
28+
url "https://github.com/mobile-shell/mosh/commit/57b97a4c910e3294b1ed441acea55da2f9ca3cb1.patch?full_index=1"
29+
sha256 "6557cb33d4c58476e4bc0ddb1eef417f6ac56eb62e07ee389b00d2d08e6f3171"
30+
end
31+
32+
patch do
33+
url "https://github.com/mobile-shell/mosh/commit/87fd565268c5498409d81584b34467bd7e16a81f.patch?full_index=1"
34+
sha256 "66f8fff80fa6d7373f88abf940c1fb838d38283b87b4a8ec9bfb1bd271e47ddc"
35+
end
2336
end
2437

2538
bottle do

0 commit comments

Comments
 (0)