From 8f100ec53fde110ede80b7b58cfe1aecb01d7e06 Mon Sep 17 00:00:00 2001 From: Sofian Brabez Date: Fri, 20 Apr 2012 22:14:34 +0000 Subject: - Update PORTREVISION to 2012032001 - Add IGNORE_TIMESTAMPS OPTIONS - Install sample configuration file PR: ports/166587 Submitted by: Michael Graziano --- sysutils/radmind/files/patch-lapply.c | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 sysutils/radmind/files/patch-lapply.c (limited to 'sysutils/radmind/files/patch-lapply.c') diff --git a/sysutils/radmind/files/patch-lapply.c b/sysutils/radmind/files/patch-lapply.c new file mode 100644 index 000000000000..63113803d7d9 --- /dev/null +++ b/sysutils/radmind/files/patch-lapply.c @@ -0,0 +1,52 @@ +--- ./lapply.c.orig 2010-12-12 22:42:49.000000000 -0500 ++++ ./lapply.c 2012-03-20 14:37:54.000000000 -0400 +@@ -651,27 +651,37 @@ + filechecklist: + if ( head == NULL ) { + if ( unlink( path ) != 0 ) { +- perror( path ); +- goto error2; +- } +- if ( !quiet && !showprogress ) { +- printf( "%s: deleted\n", path ); +- } +- if ( showprogress ) { +- progressupdate( PROGRESSUNIT, path ); +- } +- } else { +- if ( ischildcase( path, head->path, case_sensitive )) { +- if ( unlink( path ) != 0 ) { ++ if ( !force || errno != ENOENT ) { + perror( path ); + goto error2; + } ++ fprintf( stderr, "Warning: failed to remove %s: %s\n", ++ path, strerror( errno )); ++ } else { + if ( !quiet && !showprogress ) { + printf( "%s: deleted\n", path ); + } + if ( showprogress ) { + progressupdate( PROGRESSUNIT, path ); + } ++ } ++ } else { ++ if ( ischildcase( path, head->path, case_sensitive )) { ++ if ( unlink( path ) != 0 ) { ++ if ( !force || errno != ENOENT ) { ++ perror( path ); ++ goto error2; ++ } ++ fprintf( stderr, "Warning: failed to remove %s: " ++ "%s\n", path, strerror( errno )); ++ } else { ++ if ( !quiet && !showprogress ) { ++ printf( "%s: deleted\n", path ); ++ } ++ if ( showprogress ) { ++ progressupdate( PROGRESSUNIT, path ); ++ } ++ } + } else { + /* remove head */ + if ( rmdir( head->path ) != 0 ) { -- cgit v1.2.3