2011-08-20 Jonathan Nieder <jrnieder@gmail.com>

* lib/Makefile.am: Added lib/spawn.c and lib/spawn.h.
	* lib/nscd.c, lib/spawn.c, lib/spawn.h: It is not possible to
	differentiate between an nscd failure, and a failure to execute
	due to no nscd with posix_spawn. Use our own run_command routine.
	* src/userdel.c: Use run_command()
This commit is contained in:
nekral-guest
2011-08-20 13:33:38 +00:00
parent ec309dcac8
commit fc0057ff35
6 changed files with 118 additions and 34 deletions

7
lib/spawn.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef _SPAWN_H
#define _SPAWN_H
extern int run_command (const char *cmd, const char *argv[],
const char *envp[], int *status);
#endif