Commit Graph

550 Commits

Author SHA1 Message Date
Alexander Naumov
bc5ea98756 Release v4.5.1 v.4.5.1 2017-02-22 21:19:14 +01:00
Alexander Naumov
5d1641acdd bugfix: Screen doesn't build on SunOS
bug #50089
2017-02-15 20:32:13 +01:00
Alexander Naumov
6994c70aa1 limits.h => PATH_MAX for SunOS
bug #50089
2017-02-13 21:28:00 +01:00
Alexander Naumov
74c5883c47 "-Logfile" set logfile only (doesn't turn on logging) 2017-02-08 22:10:48 +01:00
Alexander Naumov
24df03b670 misprint in help.c 2017-02-08 21:57:49 +01:00
Alexander Naumov
a38de4e662 adding "-Logfile" option to help 2017-02-08 21:54:20 +01:00
Amadeusz Sławiński
13183da34e update documentation "-L logfile" -> "-Logfile" 2017-02-07 22:56:43 +01:00
Amadeusz Sławiński
18193bc7b2 make -L logfile into separate -Logfile parameter
Also drop file checking, as it became clear that it doesn't make much
sense for example with "-Logfile 'logfile.%n'" each window would have
it's own logfile and in theory we would need to check them all and still
someone could prevent us to open logfile at runtime due to creating
conflicting file with properly crafted permissions, before we open a
window.
2017-02-07 22:50:51 +01:00
Alexander Naumov
1c6d281792 CVE-2017-5618: secure open/close logfile
bug #50142

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2017-02-06 22:50:03 +01:00
Axel Beckert
6e60d12bb2 Fixed some typos found by Lintian
Author: Axel Beckert <abe@debian.org>
Bug-Debian: https://bugs.debian.org/741141
2017-02-03 22:54:32 +01:00
Amadeusz Sławiński
a8c0d68f66 Z0width & Z1width are only assigned once, make them const
It's modified cherry-pick of f4e6265c8b
from master branch.

Fix: 50197
2017-02-01 15:54:21 +01:00
Alexander Naumov
d6c724ad53 Adding "-L logfile" option for setting new logfile's name
Now it's possible to set your own lofile name with
this option ONLY. It fixes also API of old versions.
2017-01-26 23:44:43 +01:00
Alexander Naumov
2141512c94 Replace screenlogfile only if it's needed 2017-01-24 23:52:21 +01:00
Alexander Naumov
9054e9fc4a Division by zero! Solution needed 2017-01-21 03:03:11 +01:00
Alexander Naumov
bd37ae4f27 Value stored to 'i' during its initialization is never read
i.e. we initialize 'i' twice (next line)
2017-01-21 02:31:50 +01:00
Alexander Naumov
5c3d9d4b20 Value stored to 'av' during its initialization is never read
i.e. we initialize 'av' twice
2017-01-21 02:18:39 +01:00
Alexander Naumov
5fd82c69bd Value stored to 'num' is never read 2017-01-21 02:12:04 +01:00
Alexander Naumov
c14e05e7c3 Ignore logfile's name that begins with the "-" symbol
This fixes API:
To enable logging we use -L option. But in case of
default logfile name (screenlog.0) we will need to
define it anyway. Because screen will try to interpret
next option as a parameter for -L option (which is
logfile name). It will fails ALWAYS, because next
parameter will always start with "-" symbol...
what is not permited for logfile name of course.

For example:
$ screen -L -D -m ./configure
In this case logfile name is screenlog.0, because "-D"
will not be interpreted by screen as a name of logfile.

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2017-01-21 01:08:36 +01:00
Alexander Naumov
285868e0e4 variable 'oldtop' set but not used 2017-01-19 22:01:09 +01:00
Alexander Naumov
6a5f8ac1cf Refactoring + 'olddisplay' is never read (LayPause) 2017-01-19 13:10:46 +01:00
Elan Ruusamäe
0b7bcd4302 [PATCH] restore comparision not to be bitwise 2017-01-19 11:47:38 +01:00
Alexander Naumov
5c19a24dc9 Release v4.5.0
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
v.4.5.0
2016-12-07 20:27:55 +01:00
Alexander Naumov
b50e50c454 Build bugfix for AIX
bug #49149
Thanks to Tony Reix
2016-12-06 16:05:57 +01:00
Alexander Naumov
b0765867b3 Help message knows about log filename (-L)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-12-06 15:34:58 +01:00
Alexander Naumov
c3384882db Code reformating (layout.c + logfile.c)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-06 12:55:11 +01:00
Alexander Naumov
c8a795edf3 Code reformating (fileio.c)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-05 17:54:23 +01:00
Alexander Naumov
a82e1bded5 Code reformating (viewport.c)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-05 16:20:17 +01:00
Alexander Naumov
af78ba71b8 Code reformating (help.c)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-05 15:56:08 +01:00
Amadeusz Sławiński
51a84088f0 fix %x improperly separating arguments
thanks to canvon from irc
2016-11-04 19:50:13 +01:00
Alexander Naumov
5460f5d28c adding permissions check for the logfile name
Screen shows error message and terminates if you
specify not available (permissions problem?) logfile
name (-L parameter).

bug #49491

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-04 14:14:00 +01:00
Amadeusz Sławiński
3aa5ba0598 fix term size in reply 2016-10-28 21:01:34 +02:00
Amadeusz Sławiński
c43e1fecfa document dynamictitle and defdynamictitle commands
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-10-19 18:21:29 +02:00
Amadeusz Sławiński
84f65b5a70 add dynamicatitle and defdynamictitle commands
allows enabling/disabling window title change via escape sequences
useful if you want to have one or more windows with static titles, but
your shell or other screen aware application changes it

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-10-19 18:04:59 +02:00
Guo Ci
324eb386ef Remove unnecessary decrement of rep_cnt
Currently, 0% and 1% points to the same location in the scrollback buffer due
to this bug.

Bug: 49336
2016-10-16 16:27:51 +02:00
Alexander Naumov
aa2c638997 Code reformating
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-09-24 01:11:32 +02:00
Alexander Naumov
cc54563ea8 Allow specifying logfile's name via command line parameter
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-09-22 17:08:24 +02:00
Amadeusz Sławiński
f3a12f0157 fix crash with long $TERM
screen-4.4.0 built from source using -D_FORTIFY_SOURCE=1 on Fedora 24 crashes when a new window is created using the -T parameter and a sufficiently long string.

https://bugzilla.redhat.com/show_bug.cgi?id=1350549

Reported-by: Ricardo Garcia
Bug: 48983
2016-09-10 12:06:34 +02:00
Amadeusz Sławiński
cfdbd4e751 fix terminal type length in option parsing
cherry-pick from master

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-09-01 21:11:24 +02:00
Jan C. Nordholz
08c5d3b6b0 Fixes broken handling of "bind u digraph U+"
This results in a SIGSEGV instead of prompting for the
remainder. Also fixes an allocation inaccuracy I found while
debugging this, even though that one looks innocuous.

Bug-Debian: https://bugs.debian.org/831672
Bug: 48691
2016-08-07 14:09:09 +02:00
Dmitri Vereshchagin
1babc3f765 Fix crash when bumping blank window
Blank window shouldn't be swapped with normal one.  bumpleft and
bumpright need a fore window to operate properly.
2016-07-09 23:37:52 +02:00
Amadeusz Sławiński
b6256ac1aa fix install with custom DESTDIR
Bug: 48370
2016-07-04 20:46:17 +02:00
Amadeusz Sławiński
33e46a16bc use VDISABLE instead of hardcoded values
Bug: 48339

Reported-By: Valentin Nechayev <n-gnu@nn.kiev.ua>
2016-07-04 20:31:54 +02:00
Amadeusz Sławiński
eeb46067d0 change VKILL to ^U
it seems to be sane default on unix systems
among other things, fixes weird behaviour of 'read' in bash on screen -dm

Bug: 48339

Reported-By: Valentin Nechayev <n-gnu@nn.kiev.ua>
2016-07-04 20:27:58 +02:00
Amadeusz Sławiński
fd3090fb0c Fix typos in documentation
Bug: 48277
2016-06-20 19:25:17 +02:00
Amadeusz Sławiński
4c68f0ea9d 4.4.0 bump v.4.4.0 2016-06-19 22:22:20 +02:00
Amadeusz Sławiński
bfae454059 Fix more hardcoded termlen
cherry-pick from master branch
bumped struct msg version
2016-06-18 12:58:19 +02:00
Amadeusz Sławiński
5ecd2b3958 fix null pointer dereference in RC_LOGFILE
Bug: 47826
2016-05-02 19:20:45 +02:00
Amadeusz Sławiński
23c7d0e199 fix logfile command so it starts logging to new file
Bug: 46228
2016-04-05 19:00:52 +02:00
Amadeusz Sławiński
738fefe659 fix compile with -DDEBUG 2016-03-10 23:52:01 +01:00
Alexander Naumov
0fae6713ab bugfix: vi-style search fails on long wrapped lines.
In scrollback mode, vi-style search was failing to
find text split across multiple lines by line wrapping.

Signed-off-by: Michael Constant <mconst@gmail.com>
2016-03-07 14:11:26 +01:00