home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume2 / uuxqt-hack < prev    next >
Internet Message Format  |  1991-08-07  |  1KB

  1. From: ron@ccd700.UUCP (ron)
  2. Newsgroups: comp.sources.misc
  3. Subject: v02i038: A quick uuxqt fix for compressed news
  4. Message-ID: <7173@ncoast.UUCP>
  5. Date: 3 Feb 88 01:58:43 GMT
  6. Approved: allbery@ncoast.UUCP
  7.  
  8. Comp.sources.misc: Volume 2, Issue 38
  9. Submitted-By: Ron Tribble <ron@ccd700.UUCP>
  10. Archive-Name: uuxqt-hack
  11.  
  12. I have been hearing of a problem with uuxqt in sites that use
  13. compressed news.  It seems that uuxqt at some sites will go ahead
  14. and execute of the LCK file is old enough.
  15.  
  16. We have been creamed by this ourselves so I wrote the following
  17. quickie to stop it.
  18.  
  19. do whatever you want with it.
  20.  
  21. ronald r. tribble
  22.  
  23.  
  24. #include    <stdio.h>
  25. #include    <sys/types.h>
  26. #include    <stat.h>
  27.  
  28. struct    stat    *st;
  29.  
  30. main ( num , args )
  31. int    num;
  32. char    *args[];
  33. {
  34.     char    env    [512];
  35.     int    iam;
  36.     strcpy ( env , "/usr/lib/uucp/UUXQT " );
  37.     for (iam=1;iam<num;iam++)
  38.     {
  39.         strcat ( env , args[iam] );
  40.         strcat ( env , " " );
  41.     }
  42.     if ( !stat ( "/usr/spool/uucp/LCK.XQT" ) ) exit (0);
  43.     else 
  44.     {
  45.         system ( env );
  46.         unlink ( "/usr/spool/uucp/LCK.XQT" );
  47.     }
  48.     exit ( 0 );
  49. }
  50.