From c7f8051c84ad7213bd1e9e8d89ad45a65b7fa6fb Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Sat, 29 Sep 2001 19:51:24 +0000 Subject: [PATCH] RTEMS TFTP driver now handles leading ../ path name components properly. Thus, for ../../dbd/example.dbd to be found properly, the st.cmd script must be moved down two directories. For now it is in bin/scripts, but that may change. --- src/RTEMS/base/rtems_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RTEMS/base/rtems_init.c b/src/RTEMS/base/rtems_init.c index ca90cc757..d2ced1dc0 100644 --- a/src/RTEMS/base/rtems_init.c +++ b/src/RTEMS/base/rtems_init.c @@ -103,7 +103,7 @@ rtems_set_directory (void) l = strlen (path); if (gethostname (&path[l], pathsize - l - 2) || (path[l] == '\0')) LogFatal ("Can't get host name"); - strcat (path, "/"); + strcat (path, "/bin/scripts/"); if (chdir (path) < 0) LogFatal ("Can't set initial TFTP directory"); } @@ -228,8 +228,8 @@ Init (rtems_task_argument ignored) * Run the EPICS startup script */ printf ("***** Executing EPICS startup script *****\n"); - rtems_set_directory (); iocshRegisterRTEMS (); + rtems_set_directory (); iocsh ("st.cmd"); /*