mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
Add a newline after the t function in a sed command. FreeBSD sed appears to interpret everything after the t function as a label, including characters that would otherwise have special meaning. PR: 235868 Approved by: maintainer timeout (2 weeks)
23 lines
749 B
Text
23 lines
749 B
Text
--- scripts/xdg-screensaver.in.orig 2018-05-10 15:02:31 UTC
|
|
+++ scripts/xdg-screensaver.in
|
|
@@ -27,7 +27,9 @@ _USAGE
|
|
#@xdg-utils-common@
|
|
|
|
# Check if we can use "mv -T"
|
|
-if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then
|
|
+# FreeBSD mv doesn't support this, so supress scary messages in the terminal
|
|
+#if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then
|
|
+if false; then
|
|
# We can securely move files in /tmp with mv -T
|
|
DEBUG 1 "mv -T available"
|
|
MV="mv -T"
|
|
@@ -378,7 +380,8 @@ screensaver_kde3()
|
|
|
|
xset_screensaver_timeout()
|
|
{
|
|
- xset q | sed '/^Screen Saver:/,/^[^ ]/ { s/.*timeout: *\([0-9]*\).*/\1/; t }; d'
|
|
+ xset q | sed '/^Screen Saver:/,/^[^ ]/ { s/.*timeout: *\([0-9]*\).*/\1/; t
|
|
+ }; d'
|
|
}
|
|
|
|
screensaver_xserver()
|