Comments (6)
Good catch. We should definitely document this and maybe even verify that TMPDIR is not set to /tmp. Care to provide a PR?
from openvpn-build.
I recall erasing my home directory when pointing TMPDIR to it
from openvpn-build.
I guess the best approach would be
- create tmp dir from scratch
- stop build if TMPDIR already exists
from openvpn-build.
@chipitsine wouldn't that mean that user would have to wipe TMPDIR manually before every build?
Perhaps, instead of wiping the TMPDIR entirely in build-complete, we could only wipe the build directories inside it. So, even if TMPDIR was /home/ or /tmp there would be no/minimal damage.
from openvpn-build.
I did have a backup of home dir, so I did not worry much :)
from openvpn-build.
@mattock: checking that TMPDIR isn't set to /tmp is the wrong way to do it, in my opinion because the default value for TMPDIR in many systems is /tmp (according to wikipedia).
What I would suggest is:
- do not remove the temporary build directory at all
- create a randomly-named temporary directory at each invocation.
My reasoning is:
- It's counter-intuitive to have a script called build which actually deletes things.
- The user may actually want to keep previous build artifacts.
- It's the OS responsibility to make sure /tmp has enough space, and the OS has a right to delete anything in /tmp anyway.
- Even if it was this script's responsibility to clean after itself, the way it does it now is not working: it only cleans up when invoked once again.
What do you think?
from openvpn-build.
Related Issues (20)
- can't install open vpn HOT 6
- Windows sample configurations files with wrong EOL and blank lines HOT 3
- 2.6.3 Problem With TAP Driver Signature HOT 9
- Can't install on windows 10 x64 using newer installers. HOT 2
- win11系统,编译生成msi安装包时出现错误 HOT 3
- Bug Report: Heavy Performance Limitation with TAP Adapter in OpenVPN on Windows 7 HOT 4
- Use renovate to keep dependencies up-to-date
- Dependency Dashboard self-hosted
- Cannot install on Windows 10: a script required for this install to complete could not be run HOT 19
- Cross Compile with OpenSSL 3 HOT 7
- 为啥我电脑一个线路不能用啊 HOT 2
- OpenVPNMSICA: tap_create_adapter:DinstallDevice Error 536870397 HOT 3
- CMakePresets.json Not Found HOT 1
- Can't update HOT 3
- Installation Error Every Time HOT 6
- Cannot install on Windows 10: a script required for this install to complete could not be run HOT 9
- Having the same issue, also i don't use any antivirus except for Windows Defender
- Easy-RSA: New Windows Start menu item for Easy-RSA Non-Admin mode HOT 1
- Windows Msi x64 2.6.1001 Virustotal HOT 1
- Open
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvpn-build.