/[smecontribs]/rpms/smeserver-tftp-server/contribs9/smeserver-tftp-server-1.2-blksize-check.patch
ViewVC logotype

Annotation of /rpms/smeserver-tftp-server/contribs9/smeserver-tftp-server-1.2-blksize-check.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Nov 12 16:03:12 2018 UTC (6 years ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-tftp-server-1_2-6_el6_sme, HEAD
* Mon Nov 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-6
- Add a blksize check [SME:10646]

1 jcrisp 1.1 diff -ruN smeserver-tftp-server-1.2.old/root/var/service/tftpd/run smeserver-tftp-server-1.2/root/var/service/tftpd/run
2     --- smeserver-tftp-server-1.2.old/root/var/service/tftpd/run 2018-03-29 10:49:17.177967160 +0200
3     +++ smeserver-tftp-server-1.2/root/var/service/tftpd/run 2018-11-12 16:48:14.583596187 +0100
4     @@ -24,7 +24,19 @@
5     TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory);
6     TFTPD_REFUSE=$(/sbin/e-smith/db configuration getprop tftpd refuse);
7     TFTPD_BLKSIZE=$(/sbin/e-smith/db configuration getprop tftpd blksize);
8     -
9     +
10     + # If BLKSIZE is set
11     + if [ ! -z $TFTPD_BLKSIZE ]; then
12     + #echo "Block size $TFTPD_BLKSIZE"
13     + if [ "$TFTPD_BLKSIZE" -le "512" ] ; then
14     + TFTPD_BLKSIZE=1500;
15     + elif [ "$TFTPD_BLKSIZE" -ge "65464" ] ; then
16     + TFTPD_BLKSIZE=65464;
17     + fi
18     + #echo "Now we have $TFTPD_BLKSIZE"
19     + fi
20     + #echo "Block size is $TFTPD_BLKSIZE"
21     +
22     TFTPD_ACCESS_SETTING="127.0.0.1";
23     if [ $TFTPD_ACCESS == "public" ]; then
24     TFTPD_ACCESS_SETTING="0.0.0.0";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed