summaryrefslogtreecommitdiff
path: root/core/fs
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-23 12:08:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-06-23 12:08:30 -0700
commite7def468fd1aee46e3c23b218b2cc12cab55c963 (patch)
tree8f9d9c368b60a2c71e45f6d97e8e747a1ec108c5 /core/fs
parentc82de17eedd0229be9e3b40a8639200e86b75b53 (diff)
downloadsyslinux-e7def468fd1aee46e3c23b218b2cc12cab55c963.tar.gz
pxe: set the file type in the inode structure
All "files" on PXE are regular files (there is no official directory mechanism) and so, at least for now, it's all DT_REG. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/fs')
-rw-r--r--core/fs/pxe/pxe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 692241e4..e2bd29ce 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -66,6 +66,7 @@ static struct inode *allocate_socket(struct fs_info *fs)
} else {
struct pxe_pvt_inode *socket = PVT(inode);
socket->tftp_localport = get_port();
+ inode->mode = DT_REG; /* No other types relevant for PXE */
}
return inode;