The rest of the licenses apply to code and/or man pages.
- Copyright © 2004-2006, 2008-2012 Guillem Jover <guillem@hadrons.org>
+ Copyright © 2004-2006, 2008-2013 Guillem Jover <guillem@hadrons.org>
Copyright © 2005 Hector Garcia Alvarez
Copyright © 2005 Aurelien Jarno
Copyright © 2006 Robert Millan
/*
- * Copyright © 2012 Guillem Jover <guillem@hadrons.org>
+ * Copyright © 2012-2013 Guillem Jover <guillem@hadrons.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
{
const char newtitle_base[] = "test arg1 arg2";
char *newtitle_full;
+ char *envvar;
setproctitle("-test %s arg2", "arg1");
assert(strcmp(argv[0], newtitle_base) == 0);
assert(strcmp(argv[0], newtitle_full) == 0);
free(newtitle_full);
+ assert(setenv("LIBBSD_TEST", "test value", 1) == 0);
+ envvar = getenv("LIBBSD_TEST");
+ assert(envvar != NULL);
+ assert(strcmp(envvar, "test value") == 0);
+
return 0;
}