a3134d3b4e
A suite of Unix command-line tools and a server designed to remotely administer the file systems of multiple Unix machines. At its core, radmind operates as a tripwire. It is able to detect changes to any managed filesystem object, e.g. files, directories, links, etc. However, radmind goes further than just integrity checking: once a change is detected, radmind can optionally reverse the change. WWW: http://rsug.itd.umich.edu/software/radmind/ from William Yodlowsky <bsd at openbsd.rutgers.edu>
13 lines
405 B
Plaintext
13 lines
405 B
Plaintext
$OpenBSD: patch-twhich_c,v 1.1.1.1 2004/06/26 19:00:48 sturm Exp $
|
|
--- twhich.c.orig 2004-06-08 16:29:27.000000000 -0400
|
|
+++ twhich.c 2004-06-08 16:29:40.000000000 -0400
|
|
@@ -239,7 +239,7 @@ main( int argc, char **argv )
|
|
}
|
|
|
|
linenum = 0;
|
|
- sprintf( prepath, "%s", "" );
|
|
+ (void)snprintf( prepath, sizeof( prepath ), "%s", "" );
|
|
|
|
while( fgets( line, sizeof( line ), f ) != NULL ) {
|
|
remove = 0;
|