]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/cache_cf.cc
Make debug_options rotate=N option back-compatible.
[thirdparty/squid.git] / src / cache_cf.cc
index cb6767d9b7e8743d4355cabe918eef3c7bf9fb43..be7315f6a177d72571062164d8af2307241fca22 100644 (file)
@@ -427,6 +427,10 @@ configDoConfigure(void)
     memConfigure();
     /* Sanity checks */
 
+    if (Debug::rotateNumber < 0) {
+        Debug::rotateNumber = Config.Log.rotateNumber;
+    }
+
 #if SIZEOF_OFF_T <= 4
     if (Config.Store.maxObjectSize > 0x7FFF0000) {
         debugs(3, 0, "WARNING: This Squid binary can not handle files larger than 2GB. Limiting maximum_object_size to just below 2GB");