Module Name: src Committed By: pooka Date: Wed Mar 31 13:10:10 UTC 2010
Modified Files: src/sbin/mount_fdesc: mount_fdesc.c Log Message: initialize canon_dev To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sbin/mount_fdesc/mount_fdesc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/mount_fdesc/mount_fdesc.c diff -u src/sbin/mount_fdesc/mount_fdesc.c:1.24 src/sbin/mount_fdesc/mount_fdesc.c:1.25 --- src/sbin/mount_fdesc/mount_fdesc.c:1.24 Fri Jul 31 14:58:21 2009 +++ src/sbin/mount_fdesc/mount_fdesc.c Wed Mar 31 13:10:10 2010 @@ -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)) {