summaryrefslogtreecommitdiff
path: root/Presence
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-22 07:20:24 -0400
committerjoe <joe@jerkface.net>2018-06-22 07:22:33 -0400
commit40a8f0b6eb66bae93f8708dd84aaec57f7505c05 (patch)
treee328f56dd88433a00814452e60ead88acfe13f3b /Presence
parent6bbc15735f6e28740c0e05fc8219fd83a5a464a4 (diff)
Forward port to nightly-2018-06-22.
Diffstat (limited to 'Presence')
-rw-r--r--Presence/UTmp.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Presence/UTmp.hs b/Presence/UTmp.hs
index aa2a7733..fcfe529a 100644
--- a/Presence/UTmp.hs
+++ b/Presence/UTmp.hs
@@ -17,6 +17,7 @@ import qualified Data.ByteString.Lazy.Char8 as L
17import Data.BitSyntax 17import Data.BitSyntax
18import Data.Functor.Identity 18import Data.Functor.Identity
19import Data.Maybe 19import Data.Maybe
20import Data.String
20import System.Posix.Process 21import System.Posix.Process
21import System.Posix.Signals 22import System.Posix.Signals
22import System.Posix.Types 23import System.Posix.Types
@@ -34,8 +35,8 @@ import qualified Data.Text.Encoding as Text
34import SockAddr () 35import SockAddr ()
35 36
36 37
37utmp_file :: String 38utmp_file :: IsString s => s
38utmp_file = Paths.utmp -- "/var/run/utmp" 39utmp_file = fromString $ Paths.utmp -- "/var/run/utmp"
39 40
40utmp_bs :: IO C.ByteString 41utmp_bs :: IO C.ByteString
41utmp_bs = S.readFile utmp_file 42utmp_bs = S.readFile utmp_file