1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/package/libs/clinkc/patches/032-BUGFIX_memory_check.patch
2022-11-27 10:16:14 +00:00

16 lines
638 B
Diff

Index: clinkc/src/cybergarage/http/chttp_packet.c
===================================================================
--- clinkc.orig/src/cybergarage/http/chttp_packet.c 2014-07-11 15:11:56.822851826 +0800
+++ clinkc/src/cybergarage/http/chttp_packet.c 2014-07-11 15:13:14.025934616 +0800
@@ -735,8 +735,8 @@
if(buflen >= get_free_memory()){
system("/usr/sbin/logrotate /etc/logrotate.d/sys_logrotate.conf");
if(buflen >= get_free_memory()){
- system("rm *.1");
- system("rm zcfg.log");
+ system("rm /var/log/*.1");
+ system("rm /var/log/zcfg.log");
if(buflen >= get_free_memory()){
return FALSE;
}