mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-20 00:45:35 +01:00
fix(aa-log): ensure compatibility with Debian.
This commit is contained in:
parent
e1e7d611ed
commit
ef08e11aa6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue