summaryrefslogtreecommitdiffstats
path: root/lib/libstand/tftp.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-04-08 01:18:04 +0000
committerps <ps@FreeBSD.org>2000-04-08 01:18:04 +0000
commit1e90e50f9fb9f5d7c78e5eaef8a3b9d4478adc45 (patch)
tree57df2f906d9c23fbc2a9810651e1260cc41d9bcf /lib/libstand/tftp.c
parentd741574cfe311711f9ca49b46dada42b8c505c89 (diff)
downloadFreeBSD-src-1e90e50f9fb9f5d7c78e5eaef8a3b9d4478adc45.zip
FreeBSD-src-1e90e50f9fb9f5d7c78e5eaef8a3b9d4478adc45.tar.gz
Break out sendudp and readudp from net.c. This is for PXE, so it
can use its own UDP interface.
Diffstat (limited to 'lib/libstand/tftp.c')
-rw-r--r--lib/libstand/tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c
index a6695e9..63d32d9 100644
--- a/lib/libstand/tftp.c
+++ b/lib/libstand/tftp.c
@@ -30,6 +30,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
+ * $FreeBSD$
*/
/*
@@ -375,7 +376,7 @@ tftp_stat(f, sb)
struct tftp_handle *tftpfile;
tftpfile = (struct tftp_handle *) f->f_fsdata;
- sb->st_mode = 0444;
+ sb->st_mode = 0444 | S_IFREG;
sb->st_nlink = 1;
sb->st_uid = 0;
sb->st_gid = 0;
OpenPOWER on IntegriCloud