[Xymon] Typo bug in stackio.c in release 4.3.7

Deiss, Mark Mark.Deiss at acs-inc.com
Mon Apr 9 19:07:10 CEST 2012


 Typo in lib/stackio.c in release 4.3.7 in line ~341:


       if (*dirname == '/') strcpy(dirfn, dirname); else sprintf(dirfn,
"%s/%s", stackfd_base, dirname);

        if ((dirfd = opendir(dirfn)) == NULL) {
                errprintf("Cannot open directory %s\n", fn);
                return;
        }


Should be something like:

        if (*dirname == '/') strcpy(dirfn, dirname); else sprintf(dirfn,
"%s/%s", stackfd_base, dirname);

        if ((dirfd = opendir(dirfn)) == NULL) {
                errprintf("Cannot open directory %s\n", dirfn);
                return;
        }






More information about the Xymon mailing list