Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

253 B
Raw Blame
//go:build unix

package agent

import (
	"io/fs"
	"syscall"
)

// extraHardLinks reports a file that has a name besides the one being opened.
func extraHardLinks(fi fs.FileInfo) bool {
	st, ok := fi.Sys().(*syscall.Stat_t)
	return ok && st.Nlink > 1
}