Project

General

Profile

« Previous | Next » 

Revision 819a603c

Added by Jim Pingle almost 12 years ago

Switch to rw mode before file operations on RFC2136 cache. Fixes #3201

View differences:

etc/inc/services.inc
2046 2046
				// 25 Days
2047 2047
				$maxCacheAgeSecs = 25 * 24 * 60 * 60;
2048 2048
				$need_update = false;
2049

  
2050
				conf_mount_rw();
2049 2051
				/* Update IPv4 if we have it. */
2050 2052
				if (is_ipaddrv4($wanip)) {
2051 2053
					if (($wanip != $cachedipv4) || (($currentTime - $cacheTimev4) > $maxCacheAgeSecs) || $forced) {
......
2078 2080
					}
2079 2081
				} else
2080 2082
					@unlink("{$cacheFile}.ipv6");
2083
				conf_mount_ro();
2081 2084

  
2082 2085
				$upinst .= "\n";	/* mind that trailing newline! */
2083 2086

  

Also available in: Unified diff