/* exec.c --- executes a program in *this* pid, without an intervening process.
- * xscreensaver, Copyright (c) 1991-2006 Jamie Zawinski <jwz@jwz.org>
+ * xscreensaver, Copyright (c) 1991-2013 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
int hairy_p;
#ifndef VMS
- if (nice != 0)
- nice_process (nice_level);
+ nice_process (nice_level);
hairy_p = !!strpbrk (command, "*?$&!<>[];`'\\\"=");
/* note: = is in the above because of the sh syntax "FOO=bar cmd". */
strcat (p2, "/");
strcat (p2, cmd);
result = (0 == stat (p2, &st));
+ free (p2);
if (result)
goto DONE;
token = strtok (0, ":");