mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-22 01:45:36 +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"
|
"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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue