Skip to content
Snippets Groups Projects
Commit 3b02727d authored by Moe Jette's avatar Moe Jette
Browse files

Functioning security test 3.1

parent a9950ebb
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ TESTS = security_3_1 ...@@ -7,6 +7,7 @@ TESTS = security_3_1
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common
LDADD = $(top_srcdir)/src/common/libcommon.la \ LDADD = $(top_srcdir)/src/common/libcommon.la \
$(top_srcdir)/src/api/libslurm.la \
$(SSL_LIBS) $(SSL_LIBS)
force : force :
......
...@@ -46,6 +46,7 @@ int main(int argc, char *argv[]) ...@@ -46,6 +46,7 @@ int main(int argc, char *argv[])
launch_msg.argc = 0; launch_msg.argc = 0;
launch_msg.argv = NULL; launch_msg.argv = NULL;
launch_msg.script = "/bin/hostname\n"; launch_msg.script = "/bin/hostname\n";
launch_msg.envc = 0;
launch_msg.environment = NULL; launch_msg.environment = NULL;
if (_send_launch_msg(&launch_msg) == SLURM_SUCCESS) if (_send_launch_msg(&launch_msg) == SLURM_SUCCESS)
...@@ -106,14 +107,14 @@ static int _report_results(slurm_msg_t *response_msg_ptr) ...@@ -106,14 +107,14 @@ static int _report_results(slurm_msg_t *response_msg_ptr)
return_code_msg_t *slurm_rc_msg_ptr; return_code_msg_t *slurm_rc_msg_ptr;
if (response_msg_ptr->msg_type != RESPONSE_SLURM_RC) { if (response_msg_ptr->msg_type != RESPONSE_SLURM_RC) {
fprintf(stderr, "Wrong response type: %u", fprintf(stderr, "Wrong response type: %u\n",
response_msg_ptr->msg_type); response_msg_ptr->msg_type);
return SLURM_ERROR; return SLURM_ERROR;
} }
slurm_rc_msg_ptr = (return_code_msg_t *) response_msg_ptr->data; slurm_rc_msg_ptr = (return_code_msg_t *) response_msg_ptr->data;
if (slurm_rc_msg_ptr->return_code != ESLURM_USER_ID_MISSING) { if (slurm_rc_msg_ptr->return_code != ESLURM_USER_ID_MISSING) {
fprintf(stderr, "Wrong response code: %u", fprintf(stderr, "Wrong response code: %u\n",
slurm_rc_msg_ptr->return_code); slurm_rc_msg_ptr->return_code);
return SLURM_ERROR; return SLURM_ERROR;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment