From f8a7f2b4a429bc2b74a0401b1ede29f1743f4a10 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 11 May 2018 15:31:55 +0200 Subject: partialator: Don't refuse to start if pr-logs folder exists It's a nice idea, but I'm not sure it helps. --- src/partialator.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/partialator.c b/src/partialator.c index 3dce172c..0541e54a 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -1164,13 +1164,12 @@ int main(int argc, char *argv[]) int r = mkdir("pr-logs", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if ( r ) { if ( errno == EEXIST ) { - ERROR("A folder called 'pr-logs' exists in the " - "working directory.\n"); - ERROR("Please delete or move it first.\n"); + ERROR("WARNING: pr-logs folder already exists. " + "Beware of mixing old and new log files!\n"); } else { ERROR("Failed to create pr-logs folder.\n"); + return 1; } - return 1; } } -- cgit v1.2.3