On Tue, 26 Jan 2010, Jason Thorpe wrote:
if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) { syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m"); exit(EX_OSERR); } (void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS, power_type.power_type); if (cp == NULL) { syslog(LOG_ERR, "allocating script path: %m"); exit(EX_OSERR); } script_paths[0] = cp;
Yep, I looked deeper and found that, too. ------------------------------------------------------------------------- | Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: | | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net | | Kernel Developer | | pgoyette at netbsd.org | -------------------------------------------------------------------------