Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount_fdesc initialize canon_dev
details: https://anonhg.NetBSD.org/src/rev/c1f3b25628f4
branches: trunk
changeset: 753512:c1f3b25628f4
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Mar 31 13:10:10 2010 +0000
description:
initialize canon_dev
diffstat:
sbin/mount_fdesc/mount_fdesc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e5a65dc7114e -r c1f3b25628f4 sbin/mount_fdesc/mount_fdesc.c
--- a/sbin/mount_fdesc/mount_fdesc.c Wed Mar 31 12:56:14 2010 +0000
+++ b/sbin/mount_fdesc/mount_fdesc.c Wed Mar 31 13:10:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_fdesc.c,v 1.24 2009/07/31 14:58:21 pooka Exp $ */
+/* $NetBSD: mount_fdesc.c,v 1.25 2010/03/31 13:10:10 pooka Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)mount_fdesc.c 8.3 (Berkeley) 4/26/95";
#else
-__RCSID("$NetBSD: mount_fdesc.c,v 1.24 2009/07/31 14:58:21 pooka Exp $");
+__RCSID("$NetBSD: mount_fdesc.c,v 1.25 2010/03/31 13:10:10 pooka Exp $");
#endif
#endif /* not lint */
@@ -141,6 +141,7 @@
if (*mntflags & MNT_GETARGS)
exit(0);
+ strlcpy(canon_dev, argv[0], MAXPATHLEN);
if (realpath(argv[1], canon_dir) == NULL) /* Check mounton path */
err(1, "realpath %s", argv[1]);
if (strncmp(argv[1], canon_dir, MAXPATHLEN)) {
Home |
Main Index |
Thread Index |
Old Index