Skip to content
Snippets Groups Projects
Commit 1444a600 authored by Mark Grondona's avatar Mark Grondona
Browse files

o add signals.h to Makefile.am

 o fix _search_path() to handle absolute and relative pathnames
parent 48cd54da
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ bin_PROGRAMS = srun
srun_SOURCES = srun.c opt.c env.c opt.h env.h job.c job.h net.c net.h \
msg.c msg.h io.c io.h launch.h launch.c attach.h \
reattach.c reattach.h fname.h fname.c srun.wrapper.c \
signals.c
signals.c signals.h
srun_LDADD = $(top_builddir)/src/common/libcommon.la \
$(top_builddir)/src/api/libslurm.la \
......
......@@ -1067,6 +1067,13 @@ _search_path(char *cmd, bool check_current_dir, int access_mode)
ListIterator i = NULL;
char *path, *fullpath = NULL;
if (access(cmd, access_mode) == 0) {
if (cmd[0] == '.')
xstrfmtcat(fullpath, "%s/", opt.cwd);
xstrcat(fullpath, cmd);
goto done;
}
if (check_current_dir)
list_prepend(l, xstrdup(opt.cwd));
......
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