summaryrefslogtreecommitdiffstats
path: root/lib/libstand/tftp.c
diff options
context:
space:
mode:
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