Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69054

Summary: tftp-hpa works on macos
Product: Gentoo/Alt Reporter: Michal Suchanek <hramrach>
Component: Mac OSXAssignee: osx porters <osx>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to Makefile and tftpd.c
my xinetd.d file

Description Michal Suchanek 2004-10-26 12:30:03 UTC
with a few patches tftp-hpa can be emerged on macos and can serve some files to PXE boot roms.

1) the tftp and tftp.1 files are already present in the system so they should not be installed.

2) setreuid/setregid does not work on OS X so set[e]{g,u}id should be used instead.

Also the server cannot be run as non-root so I added a check that disables the id changing if the server is already not root. However, chroot does not work when non-root.
Comment 1 Michal Suchanek 2004-10-26 12:33:39 UTC
Created attachment 42647 [details, diff]
Patch to Makefile and tftpd.c
Comment 2 Michal Suchanek 2004-10-26 12:35:59 UTC
Created attachment 42648 [details]
my xinetd.d file
Comment 3 Michal Suchanek 2005-12-14 04:54:12 UTC
still works with tftp-hpa 0.40.1
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-06-12 17:53:12 UTC
is this pre-prefix or is it prefix?

please reopen with info attached