diff --git a/NEWS b/NEWS index 9fc7848f7b0559e49b103726b982545b2e432b2f..462e210dff2964a705af3808c9504ebe5788e26c 100644 --- a/NEWS +++ b/NEWS @@ -253,6 +253,8 @@ documents those changes that are of interest to users and admins. -- Add support for switches parameter to the job_submit/lua plugin. Work by Par Andersson, NSC. -- Fix to job preemption logic to preempt multiple jobs at the same time. + -- Fix minor issue where uid and gid were switched in sview for submitting + batch jobs. * Changes in SLURM 2.3.4 ======================== diff --git a/src/sinfo/print.c b/src/sinfo/print.c index c7b2af2b73ab14b46d3a0fb2b657eb0315d2d210..1a47e847e43160c212d4e30cae5eb8f38db51e85 100644 --- a/src/sinfo/print.c +++ b/src/sinfo/print.c @@ -716,7 +716,7 @@ int _print_partition(sinfo_data_t * sinfo_data, int width, char *tmp; tmp = xstrdup(sinfo_data->part_info->name); if (sinfo_data->part_info->flags & PART_FLAG_DEFAULT) { - if ( (strlen(tmp) < width) || (width == 0) ) + if (strlen(tmp) < width) xstrcat(tmp, "*"); else if (width > 0) tmp[width-1] = '*'; diff --git a/src/sview/popups.c b/src/sview/popups.c index d7038bc07fb31aab1169eb35e2e25bfc79f16cf3..90ea6552931013489295a427d4226adcfa232e93 100644 --- a/src/sview/popups.c +++ b/src/sview/popups.c @@ -523,8 +523,8 @@ extern void create_create_popup(GtkAction *action, gpointer user_data) "More fields will be made available later."); job_msg = xmalloc(sizeof(job_desc_msg_t)); slurm_init_job_desc_msg(job_msg); - job_msg->group_id = getuid(); - job_msg->user_id = getgid(); + job_msg->group_id = getgid(); + job_msg->user_id = getuid(); job_msg->work_dir = xmalloc(1024); if (!getcwd(job_msg->work_dir, 1024)) goto end_it;