aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/linux/std.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/linux/std.go')
-rw-r--r--internal/linux/std.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/linux/std.go b/internal/linux/std.go
index a82fff26..7c6b9279 100644
--- a/internal/linux/std.go
+++ b/internal/linux/std.go
@@ -2,11 +2,11 @@ package linux
import (
"errors"
- "io"
"io/fs"
"os"
"os/exec"
"os/user"
+ "path/filepath"
"strconv"
"sync"
"syscall"
@@ -37,8 +37,8 @@ func (s *Std) LookupGroup(name string) (*user.Group, error) { return user.Lookup
func (s *Std) ReadDir(name string) ([]os.DirEntry, error) { return os.ReadDir(name) }
func (s *Std) Stat(name string) (fs.FileInfo, error) { return os.Stat(name) }
func (s *Std) Open(name string) (fs.File, error) { return os.Open(name) }
+func (s *Std) EvalSymlinks(path string) (string, error) { return filepath.EvalSymlinks(path) }
func (s *Std) Exit(code int) { fmsg.Exit(code) }
-func (s *Std) Stdout() io.Writer { return os.Stdout }
const xdgRuntimeDir = "XDG_RUNTIME_DIR"