summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-01-26 22:42:43 -0800
committerPavel Roskin <plroskin@gmail.com>2016-01-26 23:22:05 -0800
commit309fca35acfeb776a422d6140ddae8be0b1dbff0 (patch)
treecd36cb07e372255b7b7c30b94d319eb1ea8cf580
parentee1a2376854b3cf025cf69b11ea28863df1f12b2 (diff)
downloadxrdp-proprietary-309fca35acfeb776a422d6140ddae8be0b1dbff0.tar.gz
xrdp-proprietary-309fca35acfeb776a422d6140ddae8be0b1dbff0.zip
Don't use a symlink where #include would suffice
Absolute symlinks break when the source is moved to another location. In the best case, the symlink will be replaced with a copy, but that creates code duplication. A user who got the packaged source may decide to change one config.c without realizing that another config.c will get the same changes. Don't ignore config.c, it's a regular source file now, albeit very short. Testing done: compiled inside and outside build directory.
-rw-r--r--.gitignore1
-rwxr-xr-xbootstrap1
-rw-r--r--sesman/tools/config.c1
3 files changed, 1 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 7b45b684..0437bf57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,7 +5,6 @@ autom4te.cache/
ChangeLog
config_ac.h
config_ac-h.in
-config.c
config.guess
config.log
config.status
diff --git a/bootstrap b/bootstrap
index 1fae2a0e..49aeefef 100755
--- a/bootstrap
+++ b/bootstrap
@@ -33,5 +33,4 @@ touch NEWS
touch AUTHORS
touch README
touch ChangeLog
-ln -s ../config.c $PWD/sesman/tools/config.c
autoreconf -fvi
diff --git a/sesman/tools/config.c b/sesman/tools/config.c
new file mode 100644
index 00000000..0f1399cc
--- /dev/null
+++ b/sesman/tools/config.c
@@ -0,0 +1 @@
+#include "../config.c"