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

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

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


Revision 1.1 - (hide annotations) (download)
Thu Mar 29 08:50:52 2018 UTC (6 years, 7 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-tftp-server-1_2-6_el6_sme, smeserver-tftp-server-1_2-5_el6_sme, HEAD
* Thu Mar 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-5
- fix refuse setting when no key is set [10549]
- add blksize option

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:26:32.332309304 +0200
3     +++ smeserver-tftp-server-1.2/root/var/service/tftpd/run 2018-03-29 10:31:14.058068763 +0200
4     @@ -23,6 +23,7 @@
5     TFTPD_UDPPORT=$(/sbin/e-smith/db configuration getprop tftpd UDPPort);
6     TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory);
7     TFTPD_REFUSE=$(/sbin/e-smith/db configuration getprop tftpd refuse);
8     + TFTPD_BLKSIZE=$(/sbin/e-smith/db configuration getprop tftpd blksize);
9    
10     TFTPD_ACCESS_SETTING="127.0.0.1";
11     if [ $TFTPD_ACCESS == "public" ]; then
12     @@ -49,16 +50,21 @@
13     fi
14    
15     TFTPD_REFUSE_SETTING=""
16     - if [ $TFTPD_REFUSE != "" ]; then
17     + if [ "$TFTPD_REFUSE" != "" ]; then
18     TFTPD_REFUSE_SETTING="-r $TFTPD_REFUSE";
19     fi
20     -
21     +
22     + TFTPD_BLKSIZE_SETTING=""
23     + if [ "$TFTPD_BLKSIZE" != "" ]; then
24     + TFTPD_BLKSIZE_SETTING="-B $TFTPD_BLKSIZE";
25     + fi
26     +
27     cd /
28     exec 2>&1
29     exec udpsvd -h $TFTPD_LOG_SETTING \
30     $TFTPD_ACCESS_SETTING $TFTPD_UDPPORT \
31     in.tftpd $TFTPD_LOG_SETTING $TFTPD_PRIVILEGE_SETTING \
32     - -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING $TFTPD_REFUSE_SETTING -s $TFTPD_DIRECTORY
33     + -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING $TFTPD_REFUSE_SETTING $TFTPD_BLKSIZE_SETTING -s $TFTPD_DIRECTORY
34     else
35     /usr/bin/runsvctrl down .
36     fi

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