mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
Invert the meaning of two questions in the Standard installation so just
whapping "Yes" by default does not turn you into an anonymous FTP-supporting gateway machine. Those aren't the right "defaults."
This commit is contained in:
parent
392cc8343e
commit
306b268114
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57323
|
@ -304,7 +304,7 @@ installFixitCDROM(dialogMenuItem *self)
|
|||
|
||||
/* Yet more iggly hardcoded pathnames. */
|
||||
Mkdir("/usr/libexec");
|
||||
if (!file_readable("/usr/libexec/ld.so")) {
|
||||
if (!file_readable("/usr/libexec/ld.so") && file_readable("/mnt2/usr/libexec/ld.so")) {
|
||||
if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so"))
|
||||
msgDebug("Couldn't link to ld.so - not necessarily a problem for ELF\n");
|
||||
}
|
||||
|
@ -537,11 +537,12 @@ installStandard(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
}
|
||||
|
||||
if (!msgYesNo("Will this machine be an IP gateway (e.g. will it forward packets\n"
|
||||
if (msgYesNo("Will this machine be a leaf node (e.g. will not forward packets)\n"
|
||||
"between interfaces)?"))
|
||||
variable_set2("gateway_enable", "YES", 1);
|
||||
|
||||
if (!msgYesNo("Do you want to allow anonymous FTP connections to this machine?"))
|
||||
if (!msgYesNo("Do you want to grant only normal users FTP access to this\n"
|
||||
"host (e.g. no anonymous FTP connections)?"))
|
||||
configAnonFTP(self);
|
||||
|
||||
if (!msgYesNo("Do you want to configure this machine as an NFS server?"))
|
||||
|
|
|
@ -304,7 +304,7 @@ installFixitCDROM(dialogMenuItem *self)
|
|||
|
||||
/* Yet more iggly hardcoded pathnames. */
|
||||
Mkdir("/usr/libexec");
|
||||
if (!file_readable("/usr/libexec/ld.so")) {
|
||||
if (!file_readable("/usr/libexec/ld.so") && file_readable("/mnt2/usr/libexec/ld.so")) {
|
||||
if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so"))
|
||||
msgDebug("Couldn't link to ld.so - not necessarily a problem for ELF\n");
|
||||
}
|
||||
|
@ -537,11 +537,12 @@ installStandard(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
}
|
||||
|
||||
if (!msgYesNo("Will this machine be an IP gateway (e.g. will it forward packets\n"
|
||||
if (msgYesNo("Will this machine be a leaf node (e.g. will not forward packets)\n"
|
||||
"between interfaces)?"))
|
||||
variable_set2("gateway_enable", "YES", 1);
|
||||
|
||||
if (!msgYesNo("Do you want to allow anonymous FTP connections to this machine?"))
|
||||
if (!msgYesNo("Do you want to grant only normal users FTP access to this\n"
|
||||
"host (e.g. no anonymous FTP connections)?"))
|
||||
configAnonFTP(self);
|
||||
|
||||
if (!msgYesNo("Do you want to configure this machine as an NFS server?"))
|
||||
|
|
|
@ -304,7 +304,7 @@ installFixitCDROM(dialogMenuItem *self)
|
|||
|
||||
/* Yet more iggly hardcoded pathnames. */
|
||||
Mkdir("/usr/libexec");
|
||||
if (!file_readable("/usr/libexec/ld.so")) {
|
||||
if (!file_readable("/usr/libexec/ld.so") && file_readable("/mnt2/usr/libexec/ld.so")) {
|
||||
if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so"))
|
||||
msgDebug("Couldn't link to ld.so - not necessarily a problem for ELF\n");
|
||||
}
|
||||
|
@ -537,11 +537,12 @@ installStandard(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
}
|
||||
|
||||
if (!msgYesNo("Will this machine be an IP gateway (e.g. will it forward packets\n"
|
||||
if (msgYesNo("Will this machine be a leaf node (e.g. will not forward packets)\n"
|
||||
"between interfaces)?"))
|
||||
variable_set2("gateway_enable", "YES", 1);
|
||||
|
||||
if (!msgYesNo("Do you want to allow anonymous FTP connections to this machine?"))
|
||||
if (!msgYesNo("Do you want to grant only normal users FTP access to this\n"
|
||||
"host (e.g. no anonymous FTP connections)?"))
|
||||
configAnonFTP(self);
|
||||
|
||||
if (!msgYesNo("Do you want to configure this machine as an NFS server?"))
|
||||
|
|
Loading…
Reference in a new issue