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

Collapse All | Expand All

(-)conf-update-1.0/conf-update.c.orig (-2 / +2 lines)
Lines 133-144 Link Here
133
				esc_myfile = g_shell_quote(myfile);
133
				esc_myfile = g_shell_quote(myfile);
134
				highest = get_highest_update(protected, protected[i]);
134
				highest = get_highest_update(protected, protected[i]);
135
				esc_highest = g_shell_quote(highest);
135
				esc_highest = g_shell_quote(highest);
136
				cmd = (char *)calloc(strlen("diff -Nu % % | grep \"^[+-][^+-]\" | grep -v \"^[-+]#\" | grep -v \"^[-+][:space:]*$\" " ) + strlen(esc_highest) + strlen(esc_myfile), sizeof(char));
136
				cmd = (char *)calloc(strlen("diff -Nu % % | grep \"^[+-][^+-]\" | grep -v \"^[-+]#\" | grep -v \"^[-+][[:space:]]*$\" " ) + strlen(esc_highest) + strlen(esc_myfile), sizeof(char));
137
				strcpy(cmd, "diff -Nu ");
137
				strcpy(cmd, "diff -Nu ");
138
				strcat(cmd, esc_myfile);
138
				strcat(cmd, esc_myfile);
139
				strcat(cmd, " ");
139
				strcat(cmd, " ");
140
				strcat(cmd, esc_highest);
140
				strcat(cmd, esc_highest);
141
				strcat(cmd, " | grep \"^[+-][^+-]\" | grep -v \"^[-+]#\" | grep -v \"^[-+][:space:]*$\"");
141
				strcat(cmd, " | grep \"^[+-][^+-]\" | grep -v \"^[-+]#\" | grep -v \"^[-+][[:space:]]*$\"");
142
				
142
				
143
				free(myfile);
143
				free(myfile);
144
				free(esc_myfile);
144
				free(esc_myfile);

Return to bug 338414