Comment 11 for bug 1215656

Revision history for this message
In , POJAR (pojar-redhat-bugs) wrote :

An workaround for this bug and bug #1000210:

In files src/tvtime-command.c
         src/tvtime-configure.c
         src/tvtime-scanner.c
         src/tvtime.c

add this lines after int main( int argc, char **argv ):

 int main( int argc, char **argv )
 {
+ if( !getenv( "HOME" ) ) {
+ fprintf( stderr, _("tvtime requires environment variable HOME to be set.\n") );
+ exit( 1 );
+ }
+
+ if( strlen( getenv( "HOME" ) ) > 230 ) {
+ fprintf( stderr, _("The environment variable HOME is too long.\n") );
+ exit( 1 );
+ }
+