aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-11 15:31:55 +0200
committerThomas White <taw@physics.org>2018-05-11 15:31:55 +0200
commitf8a7f2b4a429bc2b74a0401b1ede29f1743f4a10 (patch)
tree90ab5668c9b5f4a1cead8bc19c08027540b5c8cb
parentf6d95bc7f26a5900d001e98d7cf36e9a1981b7f0 (diff)
partialator: Don't refuse to start if pr-logs folder exists
It's a nice idea, but I'm not sure it helps.
-rw-r--r--src/partialator.c7
1 files changed, 3 insertions, 4 deletions
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;
}
}