diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-19 19:02:47 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-19 19:02:47 +0000 |
commit | 162c84a85c288bcb97df44d08e0c0ff271ec102b (patch) | |
tree | 3b1ce12a7b3d07705573f56695f077065df34777 | |
parent | 41075d30353cd42588975cfbc8a21a69911ad4cc (diff) | |
download | tmwa-162c84a85c288bcb97df44d08e0c0ff271ec102b.tar.gz tmwa-162c84a85c288bcb97df44d08e0c0ff271ec102b.tar.bz2 tmwa-162c84a85c288bcb97df44d08e0c0ff271ec102b.tar.xz tmwa-162c84a85c288bcb97df44d08e0c0ff271ec102b.zip |
When zipping server logs, zip with -f to overwrite
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 31f269d..abb750f 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1668,7 +1668,7 @@ map_close_logfile() { if (map_logfile) { char *filenameop_buf = malloc(strlen(map_logfile_name) + 50); - sprintf(filenameop_buf, "gzip %s.%ld", map_logfile_name, map_logfile_index); + sprintf(filenameop_buf, "gzip -f %s.%ld", map_logfile_name, map_logfile_index); fclose(map_logfile); |