Commit 094c7ed2 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

quote the shell command passed to execl(). Fixes bug #169909.

2005-04-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: quote the shell command passed to execl().
	Fixes bug #169909.
parent b41d8898
2005-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c: quote the shell command passed to execl().
Fixes bug #169909.
2005-04-09 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpnewrectselecttool.[ch]
......
......@@ -433,7 +433,7 @@ run (const gchar *name,
close (pipefd[0]);
close (pipefd[1]);
execl ("/bin/sh", "/bin/sh", "-c",
stp_get_output_to (vars), NULL);
g_shell_quote (stp_get_output_to (vars)), NULL);
/* NOTREACHED */
exit (1);
} else {
......@@ -1107,14 +1107,14 @@ get_system_printers (void)
char *ptr; /* Pointer into line */
char name[128]; /* Printer name from status command */
static const char *lpcs[] = /* Possible locations of LPC... */
{
"/etc"
"/usr/bsd",
"/usr/etc",
"/usr/libexec",
"/usr/sbin"
};
static const char *lpcs[] = /* Possible locations of LPC... */
{
"/etc"
"/usr/bsd",
"/usr/etc",
"/usr/libexec",
"/usr/sbin"
};
/*
* Setup defaults...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment