v02i038: A quick uuxqt fix for compressed news

ron ron at ccd700.UUCP
Wed Feb 3 11:58:43 AEST 1988


Comp.sources.misc: Volume 2, Issue 38

Submitted-By: Ron Tribble <ron at ccd700.UUCP>

Archive-Name: uuxqt-hack


Comp.sources.misc: Volume 2, Issue 38
Submitted-By: Ron Tribble <ron at ccd700.UUCP>
Archive-Name: uuxqt-hack

I have been hearing of a problem with uuxqt in sites that use
compressed news.  It seems that uuxqt at some sites will go ahead
and execute of the LCK file is old enough.

We have been creamed by this ourselves so I wrote the following
quickie to stop it.

do whatever you want with it.

ronald r. tribble


#include	<stdio.h>
#include	<sys/types.h>
#include	<stat.h>

struct	stat	*st;

main ( num , args )
int	num;
char	*args[];
{
	char	env	[512];
	int	iam;
	strcpy ( env , "/usr/lib/uucp/UUXQT " );
	for (iam=1;iam<num;iam++)
	{
		strcat ( env , args[iam] );
		strcat ( env , " " );
	}
	if ( !stat ( "/usr/spool/uucp/LCK.XQT" ) ) exit (0);
	else 
	{
		system ( env );
		unlink ( "/usr/spool/uucp/LCK.XQT" );
	}
	exit ( 0 );
}



More information about the Comp.sources.misc mailing list