Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Allow --debug=stderr into set_debugfile() git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7612 44351d6e-118b-4698-b696-ce33095ecaa4 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | origin/4.3.19 |
Files: | files | file ages | folders |
SHA3-256: |
b8c9f5309384c042fbf4edebfb02ed5b |
User & Date: | jccleaver@users.sf.net 2015-03-24 00:18:08 |
Context
2015-03-24
| ||
00:49 | logfetch: Make skip/current location text override-able via ENV git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7613 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 82738771cf user: jccleaver@users.sf.net tags: trunk, origin/4.3.19 | |
00:18 | Allow --debug=stderr into set_debugfile() git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7612 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: b8c9f53093 user: jccleaver@users.sf.net tags: trunk, origin/4.3.19 | |
2015-03-22
| ||
05:33 | Guard possible buffer overflow w/ garbage client msg git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7611 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 550f3966e1 user: jccleaver@users.sf.net tags: trunk, origin/4.3.19 | |
Changes
Changes to lib/errormsg.c.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
if (errbuf) xfree(errbuf);
errbuf = NULL;
}
void set_debugfile(char *fn, int appendtofile)
{
if (debugfd && (debugfd != stdout)) fclose(debugfd);
if (fn) {
debugfd = fopen(fn, (appendtofile ? "a" : "w"));
if (debugfd == NULL) errprintf("Cannot open debug log %s\n", fn);
}
if (!debugfd) debugfd = stdout;
}
void starttrace(const char *fn)
|
> | > > > | | > |
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if (errbuf) xfree(errbuf); errbuf = NULL; } void set_debugfile(char *fn, int appendtofile) { /* Always close and reopen when re-setting */ if (debugfd && (debugfd != stdout) && (debugfd != stderr)) fclose(debugfd); if (fn) { if (strcasecmp(fn, "stderr") == 0) debugfd = stderr; else if (strcasecmp(fn, "stdout") == 0) debugfd = stdout; else { debugfd = fopen(fn, (appendtofile ? "a" : "w")); if (debugfd == NULL) errprintf("Cannot open debug log '%s': %s\n", fn, strerror(errno)); } } if (!debugfd) debugfd = stdout; } void starttrace(const char *fn) |