source: npl/fileserver/tftp_hpa/get-off.patch @ 85c2873

Last change on this file since 85c2873 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 575 bytes
RevLine 
[c5c522c]1diff -ruN tftp-hpa-5.0/tftpd/tftpd.c tftp-hpa-5.0-debug/tftpd/tftpd.c
2--- tftp-hpa-5.0/tftpd/tftpd.c  2009-02-16 23:51:22.000000000 +0100
3+++ tftp-hpa-5.0-debug/tftpd/tftpd.c    2009-10-14 13:29:43.140093316 +0200
4@@ -1378,6 +1378,16 @@
5     tsize_ok = 0;
6     *errmsg = NULL;
7 
8+     /* DatuX patch
9+      * Make tftpd read-only
10+      */
11+    if(mode==WRQ) {
12+       nak(EOPTNEG, "This TFTP-server doesn't support write functions.");
13+        return(0);
14+    }
15+
16+
17+
18     if (!secure) {
19         if (*filename != '/') {
20             *errmsg = "Only absolute filenames allowed";
Note: See TracBrowser for help on using the repository browser.