Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 360013 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/librc/librc.c (-4 / +3 lines)
Lines 525-531 rc_service_exists(const char *service) Link Here
525
}
525
}
526
librc_hidden_def(rc_service_exists)
526
librc_hidden_def(rc_service_exists)
527
527
528
#define OPTSTR ". '%s'; echo $opts"
528
#define EXTRASTR ". '%s'; echo $extra_commands $extra_started_commands"
529
RC_STRINGLIST *
529
RC_STRINGLIST *
530
rc_service_extra_commands(const char *service)
530
rc_service_extra_commands(const char *service)
531
{
531
{
Lines 542-550 rc_service_extra_commands(const char *service) Link Here
542
	if (!(svc = rc_service_resolve(service)))
542
	if (!(svc = rc_service_resolve(service)))
543
		return NULL;
543
		return NULL;
544
544
545
	l = strlen(OPTSTR) + strlen(svc) + 1;
545
	l = strlen(EXTRASTR) + strlen(svc) + 1;
546
	cmd = xmalloc(sizeof(char) * l);
546
	cmd = xmalloc(sizeof(char) * l);
547
	snprintf(cmd, l, OPTSTR, svc);
547
	snprintf(cmd, l, EXTRASTR, svc);
548
	free(svc);
548
	free(svc);
549
549
550
	if ((fp = popen(cmd, "r"))) {
550
	if ((fp = popen(cmd, "r"))) {
551
- 

Return to bug 360013