From af037c593aa3c021ddcde6a66bcf6725e8934edb Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 7 Jan 2003 16:21:19 +0000 Subject: [PATCH] Added directory separator to resource and logbook dir SVN revision: 315 --- elogd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/elogd.c b/elogd.c index 4ad1a77f..74c36c6a 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.121 2003/01/07 16:21:19 midas + Added directory separator to resource and logbook dir + Revision 2.120 2003/01/07 15:54:12 midas Change 'User' and 'Group' to 'Usr' and 'Grp' not to conflict with groups @@ -12396,6 +12399,12 @@ usage: } } + if (resource_dir[0] && resource_dir[strlen(resource_dir)-1] != DIR_SEPARATOR) + strlcat(resource_dir, DIR_SEPARATOR_STR, sizeof(resource_dir)); + + if (logbook_dir[0] && logbook_dir[strlen(logbook_dir)-1] != DIR_SEPARATOR) + strlcat(logbook_dir, DIR_SEPARATOR_STR, sizeof(logbook_dir)); + if (verbose) { printf("Config file : %s\n", config_file);