ecbeaa
diff -up tftp-hpa-0.48/tftp-xinetd.tftpboot tftp-hpa-0.48/tftp-xinetd
ecbeaa
--- tftp-hpa-0.48/tftp-xinetd.tftpboot	2007-01-31 00:51:05.000000000 +0100
ecbeaa
+++ tftp-hpa-0.48/tftp-xinetd	2008-05-20 12:05:53.000000000 +0200
ecbeaa
@@ -10,7 +10,7 @@ service tftp
ecbeaa
 	wait			= yes
ecbeaa
 	user			= root
ecbeaa
 	server			= /usr/sbin/in.tftpd
ecbeaa
-	server_args		= -s /tftpboot
ecbeaa
+	server_args		= -s /var/lib/tftpboot
ecbeaa
 	disable			= yes
ecbeaa
 	per_source		= 11
ecbeaa
 	cps			= 100 2
ecbeaa
diff -up tftp-hpa-0.48/README.security.tftpboot tftp-hpa-0.48/README.security
ecbeaa
--- tftp-hpa-0.48/README.security.tftpboot	2008-05-29 17:36:32.000000000 +0200
ecbeaa
+++ tftp-hpa-0.48/README.security	2008-05-29 17:37:21.000000000 +0200
ecbeaa
@@ -17,10 +17,10 @@ probably the following:
ecbeaa
 
ecbeaa
 1. Create a separate "tftpd" user and group only used for tftpd;
ecbeaa
 2. Have all your boot files in a single directory tree (usually called 
ecbeaa
-   /tftpboot).
ecbeaa
-3. Specify "-p -u tftpd -s /tftpboot" on the tftpd command line; if
ecbeaa
+   /var/lib/tftpboot).
ecbeaa
+3. Specify "-p -u tftpd -s /var/lib/tftpboot" on the tftpd command line; if
ecbeaa
    you want clients to be able to create files use
ecbeaa
-   "-p -c -U 002 -u tftpd -s /tftpboot" (replace 002 with whatever
ecbeaa
+   "-p -c -U 002 -u tftpd -s /var/lib/tftpboot" (replace 002 with whatever
ecbeaa
    umask is appropriate for your setup.)
ecbeaa
 
ecbeaa
 	       =======================================
ecbeaa
@@ -40,12 +40,12 @@ directly.  Thus, if your /etc/inetd.conf
ecbeaa
 line):
ecbeaa
 
ecbeaa
 tftp	dgram	udp	wait	root	/usr/sbin/tcpd
ecbeaa
-/usr/sbin/in.tftpd -s /tftpboot -r blksize
ecbeaa
+/usr/sbin/in.tftpd -s /var/lib/tftpboot -r blksize
ecbeaa
 
ecbeaa
 ... it's better to change to ...
ecbeaa
 
ecbeaa
 tftp	dgram	udp	wait	root	/usr/sbin/in.tftpd
ecbeaa
-in.tftpd -s /tftpboot -r blksize
ecbeaa
+in.tftpd -s /var/lib/tftpboot -r blksize
ecbeaa
 
ecbeaa
 You should make sure that you are using "wait" option in tftpd; you
ecbeaa
 also need to have tftpd spawned as root in order for chroot (-s) to
ecbeaa
diff -up tftp-hpa-0.48/tftpd/sample.rules.tftpboot tftp-hpa-0.48/tftpd/sample.rules
ecbeaa
--- tftp-hpa-0.48/tftpd/sample.rules.tftpboot	2008-05-29 17:38:46.000000000 +0200
ecbeaa
+++ tftp-hpa-0.48/tftpd/sample.rules	2008-05-29 17:38:05.000000000 +0200
ecbeaa
@@ -30,5 +30,5 @@ rg	\\		/		# Convert backslashes to slash
ecbeaa
 rg	\#		@		# Convert hash marks to @ signs
ecbeaa
 rg	/../		/..no../	# Convert /../ to /..no../
ecbeaa
 e	^ok/				# These are always ok
ecbeaa
-r	^[^/]		/tftpboot/\0	# Convert non-absolute files
ecbeaa
+r	^[^/]		/var/lib/tftpboot/\0	# Convert non-absolute files
ecbeaa
 a	\.pvt$				# Reject requests for private files