From ee41ef9d5ceca486830e3af5d9c2eca75739d682 Mon Sep 17 00:00:00 2001 From: jwindley <jwindley@unknown> Date: Tue, 19 Aug 2003 23:36:16 +0000 Subject: [PATCH] Fix an assignment that should be a comparison --- src/slurmctld/partition_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slurmctld/partition_mgr.c b/src/slurmctld/partition_mgr.c index d7896a78ba8..5bc4e3c2082 100644 --- a/src/slurmctld/partition_mgr.c +++ b/src/slurmctld/partition_mgr.c @@ -748,7 +748,7 @@ int validate_group(struct part_record *part_ptr, uid_t submit_uid) if (part_ptr->allow_groups == NULL) return 1; /* all users allowed */ - if ((submit_uid == 0) || (submit_uid = getuid())) + if ((submit_uid == 0) || (submit_uid == getuid())) return 1; /* super-user can run anywhere */ if (part_ptr->allow_uids == NULL) -- GitLab