Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2013 20:43:13 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251553 - head/usr.sbin/bsdconfig/console
Message-ID:  <201306082043.r58KhDnE003098@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sat Jun  8 20:43:13 2013
New Revision: 251553
URL: http://svnweb.freebsd.org/changeset/base/251553

Log:
  Prevent getting hung-up on the following prompt (found while testing with
  `chflags schg /etc/ttys'):
  
  override rw-r--r--  root/wheel for /etc/ttys? (y/n [n])
  
  Simply by adding `-f' flag to mv(1).

Modified:
  head/usr.sbin/bsdconfig/console/ttys

Modified: head/usr.sbin/bsdconfig/console/ttys
==============================================================================
--- head/usr.sbin/bsdconfig/console/ttys	Sat Jun  8 20:27:16 2013	(r251552)
+++ head/usr.sbin/bsdconfig/console/ttys	Sat Jun  8 20:43:13 2013	(r251553)
@@ -153,7 +153,7 @@ ttys_set_type()
 		printf "%s%s%s\n", left, consterm, right
 	}
 	' "$ETC_TTYS" > "$tmpfile" || return $FAILURE
-	f_quietly mv "$tmpfile" "$ETC_TTYS" || return $FAILURE
+	f_quietly mv -f "$tmpfile" "$ETC_TTYS" || return $FAILURE
 
 	return $SUCCESS
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306082043.r58KhDnE003098>