Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

t_unsafe.c File Reference

Test harness for unsafe_symlink(). More...

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Variables

int dry_run
int read_only
int list_only
int verbose


Detailed Description

Test harness for unsafe_symlink().

Not linked into rsync itself.

Prints either "safe" or "unsafe" depending on the two arguments. Always returns 0 unless something extraordinary happens.

Definition in file t_unsafe.c.


Function Documentation

int main int    argc,
char **    argv
 

Definition at line 33 of file t_unsafe.c.

References unsafe_symlink().

00034 {
00035         if (argc != 3) {
00036                 fprintf(stderr, "usage: t_unsafe LINKDEST SRCDIR\n");
00037                 return 1;
00038         }
00039 
00040         printf("%s\n",
00041                unsafe_symlink(argv[1], argv[2]) ? "unsafe" : "safe");
00042         
00043         return 0;
00044 }


Variable Documentation

int dry_run
 

Definition at line 30 of file t_unsafe.c.

int read_only
 

Definition at line 30 of file t_unsafe.c.

int list_only
 

Definition at line 30 of file t_unsafe.c.

int verbose
 

Definition at line 30 of file t_unsafe.c.

Referenced by robust_unlink(), and set_modtime().


Generated on Tue Apr 16 12:37:39 2002 for rsync by doxygen1.2.15