diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-27 23:01:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-27 23:01:31 +0200 |
| commit | c025acbea84bdc5701d26b60504392dcffd8324b (patch) | |
| tree | 8f75aaf689ef41d1708654baac17a96acbb054b8 /internal/file | |
| parent | 4d84ceb78563d5b750bf3bb98040b8da07e8554a (diff) | |
implemented dup
Diffstat (limited to 'internal/file')
| -rw-r--r-- | internal/file/file.go | 6 |
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) { |
