Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ext2fs put back second strlcpy; pointed out by dholl...



details:   https://anonhg.NetBSD.org/src/rev/e304dcfa1b59
branches:  trunk
changeset: 347408:e304dcfa1b59
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 25 07:18:35 2016 +0000

description:
put back second strlcpy; pointed out by dholland.

diffstat:

 sys/ufs/ext2fs/ext2fs_vfsops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 5a3c74556b35 -r e304dcfa1b59 sys/ufs/ext2fs/ext2fs_vfsops.c
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c    Thu Aug 25 07:13:39 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c    Thu Aug 25 07:18:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_vfsops.c,v 1.203 2016/08/23 06:24:30 christos Exp $     */
+/*     $NetBSD: ext2fs_vfsops.c,v 1.204 2016/08/25 07:18:35 christos Exp $     */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.203 2016/08/23 06:24:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.204 2016/08/25 07:18:35 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -245,6 +245,9 @@
        (void)strlcpy(fs->e2fs_fsmnt, mp->mnt_stat.f_mntonname,
             sizeof(fs->e2fs_fsmnt));
        if (fs->e2fs_ronly == 0 && fs->e2fs.e2fs_rev > E2FS_REV0) {
+               (void)strlcpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname,
+                   sizeof(fs->e2fs.e2fs_fsmnt));
+
                fs->e2fs.e2fs_mtime = time_second;
                fs->e2fs.e2fs_mnt_count++;
 



Home | Main Index | Thread Index | Old Index