diff options
author | dteske <dteske@FreeBSD.org> | 2013-06-08 20:43:13 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-06-08 20:43:13 +0000 |
commit | f8a485d655ed1e4077aa2b8d76b8507112a396d5 (patch) | |
tree | 85a5db97c3c0a49648fd16cf96a2864243000c56 | |
parent | cac59a27d8814548582240bfdf0f2c311e715cac (diff) | |
download | FreeBSD-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).
-rwxr-xr-x | usr.sbin/bsdconfig/console/ttys | 2 |
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 } |