[Midnightbsd-cvs] src [8551] trunk/usr.sbin/sysinstall/variable.c: fix error when progname is not sysinstall

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 19 10:31:16 EDT 2016


Revision: 8551
          http://svnweb.midnightbsd.org/src/?rev=8551
Author:   laffer1
Date:     2016-09-19 10:31:15 -0400 (Mon, 19 Sep 2016)
Log Message:
-----------
fix error when progname is not sysinstall

Modified Paths:
--------------
    trunk/usr.sbin/sysinstall/variable.c

Modified: trunk/usr.sbin/sysinstall/variable.c
===================================================================
--- trunk/usr.sbin/sysinstall/variable.c	2016-09-19 14:30:50 UTC (rev 8550)
+++ trunk/usr.sbin/sysinstall/variable.c	2016-09-19 14:31:15 UTC (rev 8551)
@@ -4,7 +4,7 @@
  * This is probably the last program in the `sysinstall' line - the next
  * generation being essentially a complete rewrite.
  *
- * $MidnightBSD: src/usr.sbin/sysinstall/variable.c,v 1.3 2009/10/24 15:15:57 laffer1 Exp $
+ * $MidnightBSD$
  *
  * Copyright (c) 1995
  *	Jordan Hubbard.  All rights reserved.
@@ -247,8 +247,8 @@
 
     fp = fopen("/etc/sysinstall.vars", "w");
     if (!fp) {
-	msgConfirm("Unable to write to /etc/%s.vars: %s",
-		   ProgName, strerror(errno));
+	msgConfirm("Unable to write to /etc/sysinstall.vars: %s",
+		   strerror(errno));
 	return DITEM_FAILURE;
     }
 



More information about the Midnightbsd-cvs mailing list