fix(aa-log): ensure compatibility with Debian.

This commit is contained in:
Alexandre Pujol 2022-08-20 13:46:45 +01:00
parent e1e7d611ed
commit ef08e11aa6
Failed to generate hash of commit

View file

@ -12,6 +12,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"io" "io"
"io/ioutil"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
@ -100,7 +101,7 @@ func getJournalctlDbusSessionLogs(file io.Reader, useFile bool) (io.Reader, erro
var value string var value string
if useFile { if useFile {
content, err := io.ReadAll(file) content, err := ioutil.ReadAll(file)
if err != nil { if err != nil {
return nil, err return nil, err
} }