summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/console
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-06-08 20:43:13 +0000
committerdteske <dteske@FreeBSD.org>2013-06-08 20:43:13 +0000
commitf8a485d655ed1e4077aa2b8d76b8507112a396d5 (patch)
tree85a5db97c3c0a49648fd16cf96a2864243000c56 /usr.sbin/bsdconfig/console
parentcac59a27d8814548582240bfdf0f2c311e715cac (diff)
downloadFreeBSD-src-f8a485d655ed1e4077aa2b8d76b8507112a396d5.zip
FreeBSD-src-f8a485d655ed1e4077aa2b8d76b8507112a396d5.tar.gz
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).
Diffstat (limited to 'usr.sbin/bsdconfig/console')
-rwxr-xr-xusr.sbin/bsdconfig/console/ttys2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/console/ttys b/usr.sbin/bsdconfig/console/ttys
index 626d7c9..d23a33c 100755
--- a/usr.sbin/bsdconfig/console/ttys
+++ b/usr.sbin/bsdconfig/console/ttys
@@ -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
}
OpenPOWER on IntegriCloud