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