[SSSD] [PATCH] SSSD: Add the options to specify a UID and GID to run as

Jakub Hrozek jhrozek at redhat.com
Tue Oct 14 16:19:53 UTC 2014


On Tue, Oct 14, 2014 at 05:11:49PM +0200, Pavel Reichl wrote:
> 
> On 10/13/2014 04:08 PM, Jakub Hrozek wrote:
> >+void test_run_as_root_daemon(void **state)
> >+{
> >+    int ret;
> >+    struct main_context *main_ctx;
> >+    struct passwd *sssd;
> >+    pid_t pid;
> >+    char *pidfile;
> >+
> >+    /* Must root as root, real or fake */
> >+    assert_int_equal(geteuid(), 0);
> >+
> >+    sssd = getpwnam("sssd");
> >+    assert_non_null(sssd);
> I think that sssd variable is copy&paste mistake here.

Why? The test attempts to resolve the user sssd and makes sure sssd is a
valid pointer to struct passwd..



More information about the sssd-devel mailing list