syslogd: support "symlink to symlink" for /dev/log; reduce stack usage

function                                             old     new   delta
create_socket                                          -     134    +134
syslogd_main                                        1132     865    -267
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 134/-267)         Total: -133 bytes
   text    data     bss     dec     hex filename
 775603     974    9420  785997   bfe4d busybox_old
 775445     974    9420  785839   bfdaf busybox_unstripped
This commit is contained in:
Denis Vlasenko
2007-11-10 01:28:19 +00:00
parent 9bd8d0c23e
commit d031b203c7
2 changed files with 30 additions and 32 deletions

View File

@ -65,7 +65,7 @@ char *xmalloc_follow_symlinks(const char *path)
if (!--looping) {
free(linkpath);
free_buf_ret_null:
free_buf_ret_null:
free(buf);
return NULL;
}