ron@ccd700.UUCP (ron) (02/03/88)
Comp.sources.misc: Volume 2, Issue 38 Submitted-By: Ron Tribble <ron@ccd700.UUCP> Archive-Name: uuxqt-hack Comp.sources.misc: Volume 2, Issue 38 Submitted-By: Ron Tribble <ron@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 ); }