home *** CD-ROM | disk | FTP | other *** search
- From: ron@ccd700.UUCP (ron)
- Newsgroups: comp.sources.misc
- Subject: v02i038: A quick uuxqt fix for compressed news
- Message-ID: <7173@ncoast.UUCP>
- Date: 3 Feb 88 01:58:43 GMT
- Approved: allbery@ncoast.UUCP
-
- 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 );
- }
-