Revision: 77115
http://sourceforge.net/p/brlcad/code/77115
Author: starseeker
Date: 2020-09-13 00:32:36 +0000 (Sun, 13 Sep 2020)
Log Message:
-----------
Don't make a failure here fatal - just warn.
Modified Paths:
--------------
brlcad/branches/RELEASE/src/archer/archer.c
brlcad/branches/RELEASE/src/mged/mged.c
brlcad/branches/RELEASE/src/rtwizard/main.c
Modified: brlcad/branches/RELEASE/src/archer/archer.c
===================================================================
--- brlcad/branches/RELEASE/src/archer/archer.c 2020-09-13 00:27:23 UTC (rev
77114)
+++ brlcad/branches/RELEASE/src/archer/archer.c 2020-09-13 00:32:36 UTC (rev
77115)
@@ -108,7 +108,7 @@
if (BU_STR_EQUAL(cwd, bindir)) {
bu_dir(cwd, MAXPATHLEN, BU_DIR_HOME, NULL);
if (chdir(cwd)) {
- bu_exit(EXIT_FAILURE, "Working directory is the binary directory
\"%s\" (read-only), and chdir to home directory \"%s\" failed.", bindir, cwd);
+ bu_log("WARNING: working directory is the binary directory \"%s\"
(read-only), and chdir to home directory \"%s\" failed.", bindir, cwd);
}
}
Modified: brlcad/branches/RELEASE/src/mged/mged.c
===================================================================
--- brlcad/branches/RELEASE/src/mged/mged.c 2020-09-13 00:27:23 UTC (rev
77114)
+++ brlcad/branches/RELEASE/src/mged/mged.c 2020-09-13 00:32:36 UTC (rev
77115)
@@ -1061,7 +1061,7 @@
if (BU_STR_EQUAL(cwd, bindir)) {
bu_dir(cwd, MAXPATHLEN, BU_DIR_HOME, NULL);
if (chdir(cwd)) {
- bu_exit(EXIT_FAILURE, "Working directory is the binary directory
\"%s\" (read-only), and chdir to home directory \"%s\" failed.", bindir, cwd);
+ bu_log("WARNING: working directory is the binary directory \"%s\"
(read-only), and chdir to home directory \"%s\" failed.", bindir, cwd);
}
}
Modified: brlcad/branches/RELEASE/src/rtwizard/main.c
===================================================================
--- brlcad/branches/RELEASE/src/rtwizard/main.c 2020-09-13 00:27:23 UTC (rev
77114)
+++ brlcad/branches/RELEASE/src/rtwizard/main.c 2020-09-13 00:32:36 UTC (rev
77115)
@@ -1023,7 +1023,7 @@
if (BU_STR_EQUAL(cwd, bindir)) {
bu_dir(cwd, MAXPATHLEN, BU_DIR_HOME, NULL);
if (chdir(cwd)) {
- bu_exit(EXIT_FAILURE, "Working directory is the binary directory
\"%s\" (read-only), and chdir to home directory \"%s\" failed. RtWizard
requires a read/write working directory.", bindir, cwd);
+ bu_log("WARNING: working directory is the binary directory \"%s\"
(read-only), and chdir to home directory \"%s\" failed. RtWizard requires a
read/write working directory.", bindir, cwd);
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits