Differential D40119 Diff 122051 emulators/virtualbox-ose-legacy/files/patch-src-VBox-Installer-freebsd-VBox.sh
Changeset View
Changeset View
Standalone View
Standalone View
emulators/virtualbox-ose-legacy/files/patch-src-VBox-Installer-freebsd-VBox.sh
Context not available. | |||||
+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. | +# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. | ||||
+# | +# | ||||
+ | + | ||||
+PATH="/usr/bin:/bin:/usr/sbin:/sbin" | +PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" | ||||
adamw: I'm not sure that putting `/usr/local/` before base is good practice. With this patch, a… | |||||
Done Inline ActionsMy 1st version before upload here was: vvd: My 1st version before upload here was:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin… | |||||
Done Inline ActionsI always start with what FreeBSD itself uses (from /etc/login.conf, and I skip ~/bin of course): $ awk '/path/ {print;exit;}' /etc/login.conf :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\ At the end of the day, you're the committer. Don't be afraid to modify patches from submitters; they're counting on you for that. Most submitters see changes in the final patch as a learning opportunity. adamw: I always start with what FreeBSD itself uses (from `/etc/login.conf`, and I skip `~/bin` of… | |||||
+CONFIG="/usr/local/etc/vbox/vbox.cfg" | +CONFIG="/usr/local/etc/vbox/vbox.cfg" | ||||
Not Done Inline ActionsHere %%PREFIX should be used, I believe. arrowd: Here `%%PREFIX` should be used, I believe. | |||||
+ | + | ||||
+test -r "${CONFIG}" && | +test -r "${CONFIG}" && | ||||
Context not available. |
I'm not sure that putting /usr/local/ before base is good practice. With this patch, a malicious /usr/local/bin/mount could be called instead of /sbin/mount. Would we be better off putting /usr/local/... at the end instead?