summaryrefslogtreecommitdiff
path: root/internal/file/file.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-27 23:01:31 +0200
committerPaul Buetow <paul@buetow.org>2025-03-27 23:01:31 +0200
commitc025acbea84bdc5701d26b60504392dcffd8324b (patch)
tree8f75aaf689ef41d1708654baac17a96acbb054b8 /internal/file/file.go
parent4d84ceb78563d5b750bf3bb98040b8da07e8554a (diff)
implemented dup
Diffstat (limited to 'internal/file/file.go')
-rw-r--r--internal/file/file.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/file/file.go b/internal/file/file.go
index 11acde3..9754520 100644
--- a/internal/file/file.go
+++ b/internal/file/file.go
@@ -57,9 +57,9 @@ func NewFdWithPid(fd int32, pid uint32) (f FdFile) {
}
func (f FdFile) Dup(fd int32) FdFile {
- duppedFd := f
- duppedFd.fd = fd
- return duppedFd
+ dupFd := f
+ dupFd.fd = fd
+ return dupFd
}
func readFlagsFromFdInfo(fd int32, pid uint32) (int32, error) {