#include <assert.h>
#include <fcntl.h>
+#define ENSC_WRAPPERS_PREFIX "chcontext: "
#define ENSC_WRAPPERS_VSERVER 1
#define ENSC_WRAPPERS_UNISTD 1
#define ENSC_WRAPPERS_FCNTL 1
if (name == NULL) return;
if (sethostname(name, strlen(name))==-1) {
- perror("sethostname()");
+ perror("chcontext: sethostname()");
exit(255);
}
if (!global_args->do_silent) {
if (name == NULL) return;
if (setdomainname(name, strlen(name))==-1) {
- perror("setdomainname()");
+ perror("chcontext: setdomainname()");
exit(255);
}
if (!global_args->do_silent) {
execvp (argv[optind],argv+optind);
doSyncStage2(p);
- perror("execvp()");
+ PERROR_Q("chcontext: execvp", argv[optind]);
exit(255);
}