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