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
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"