aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hsu/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hsu/main.go')
-rw-r--r--cmd/hsu/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/hsu/main.go b/cmd/hsu/main.go
index 497279b8..2acc8d4c 100644
--- a/cmd/hsu/main.go
+++ b/cmd/hsu/main.go
@@ -58,7 +58,7 @@ import (
"fmt"
"log"
"os"
- "path"
+ "path/filepath"
"runtime"
"slices"
"strconv"
@@ -102,13 +102,13 @@ func main() {
log.Fatal("this program must not be started by root")
}
- if !path.IsAbs(hakureiPath) {
+ if !filepath.IsAbs(hakureiPath) {
log.Fatal("this program is compiled incorrectly")
return
}
var toolPath string
- pexe := path.Join("/proc", strconv.Itoa(os.Getppid()), "exe")
+ pexe := filepath.Join("/proc", strconv.Itoa(os.Getppid()), "exe")
if p, err := os.Readlink(pexe); err != nil {
log.Fatalf("cannot read parent executable path: %v", err)
} else if strings.HasSuffix(p, " (deleted)") {