From 7215a486c3ab187fd67ea0f63945859b267cfc08 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 23 Aug 1997 21:25:24 +0000 Subject: Protect against target containing a '%' which might be misinterpreted by err(3). PR: bin/3864 --- sbin/mount_union/mount_union.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sbin/mount_union') diff --git a/sbin/mount_union/mount_union.c b/sbin/mount_union/mount_union.c index 699a01c..07ba692 100644 --- a/sbin/mount_union/mount_union.c +++ b/sbin/mount_union/mount_union.c @@ -35,13 +35,18 @@ */ #ifndef lint -char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1992, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint +#if 0 static char sccsid[] = "@(#)mount_union.c 8.5 (Berkeley) 3/27/94"; +#else +static const char rcsid[] = + "$Id$"; +#endif #endif /* not lint */ #include @@ -127,7 +132,7 @@ main(argc, argv) errx(EX_OSERR, "union filesystem is not available"); if (mount(vfc.vfc_name, source, mntflags, &args)) - err(EX_OSERR, target); + err(EX_OSERR, "%s", target); exit(0); } -- cgit v1.1