/usr/share/doc/libjcifs-java/examples/GrowWrite.java is in libjcifs-java 1.3.16-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | import jcifs.smb.SmbFile;
import jcifs.smb.SmbFileOutputStream;
import java.io.FileInputStream;
public class GrowWrite {
static final int SIZE = 0xFFF;
public static void main( String argv[] ) throws Exception {
int n, tot;
byte[] buf = new byte[SIZE];
SmbFile f = new SmbFile( argv[0] );
SmbFileOutputStream out = new SmbFileOutputStream( f );
n = tot = 0;
do {
if(( n % 0x1F ) == 0) {
f = new SmbFile( argv[0] );
out = new SmbFileOutputStream( f );
System.out.print( '#' );
}
out.write( buf, 0, n );
out.flush();
tot += n;
} while( n++ < SIZE );
System.out.println();
System.out.println( tot + " bytes transfered." );
}
}
|