1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a crash when using the --terminal option without having access to the given terminal

This commit is contained in:
Klaus Schmidinger 2003-09-05 13:02:15 +02:00
parent 2ac21ab000
commit ca9e7b6937
3 changed files with 9 additions and 1 deletions

View File

@ -546,6 +546,8 @@ Steffen Barszus <st_barszus@gmx.de>
for reporting a bug in switching audio tracks in 'Transfer Mode' on the primary DVB device for reporting a bug in switching audio tracks in 'Transfer Mode' on the primary DVB device
for making the program use the values of VIDEODIR and PLUGINDIR defined in Makefile for making the program use the values of VIDEODIR and PLUGINDIR defined in Makefile
or Makefile.config as defaults or Makefile.config as defaults
for helping to debug a crash when using the --terminal option without having access
to the given terminal
Peter Seyringer <e9425234@student.tuwien.ac.at> Peter Seyringer <e9425234@student.tuwien.ac.at>
for reporting a bug in saving the polarization parameter of channels that have a for reporting a bug in saving the polarization parameter of channels that have a

View File

@ -2358,3 +2358,5 @@ Video Disk Recorder Revision History
- Updated VIVA, VIVA Plus, MTV Central and MTV 2 in channels.conf (thanks to - Updated VIVA, VIVA Plus, MTV Central and MTV 2 in channels.conf (thanks to
Sebastian Frei). Sebastian Frei).
- Changed "Studio Universal" to "Sci-Fi" in channels.conf. - Changed "Studio Universal" to "Sci-Fi" in channels.conf.
- Fixed a crash when using the --terminal option without having access to the
given terminal (thanks to Steffen Barszus for helping to debug this one).

6
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/vdr * The project's page is at http://www.cadsoft.de/vdr
* *
* $Id: vdr.c 1.166 2003/08/24 11:18:04 kls Exp $ * $Id: vdr.c 1.167 2003/09/05 13:01:00 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -199,6 +199,10 @@ int main(int argc, char *argv[])
case 's': Shutdown = optarg; case 's': Shutdown = optarg;
break; break;
case 't': Terminal = optarg; case 't': Terminal = optarg;
if (access(Terminal, R_OK | W_OK) < 0) {
fprintf(stderr, "vdr: can't access terminal: %s\n", Terminal);
return 2;
}
break; break;
case 'V': DisplayVersion = true; case 'V': DisplayVersion = true;
break; break;