mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Don't casually blow away FTP site settings now that it's easy for user
to override them.
This commit is contained in:
parent
64a88efa64
commit
11fcd0ba76
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18933
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: media.c,v 1.60 1996/10/09 09:53:38 jkh Exp $
|
||||
* $Id: media.c,v 1.61 1996/10/12 19:30:20 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -262,11 +262,11 @@ mediaSetFTP(dialogMenuItem *self)
|
||||
static Boolean network_init = 1;
|
||||
int what = DITEM_RESTORE;
|
||||
|
||||
/* If we've been through here before ... */
|
||||
if (!network_init && msgYesNo("Re-use old FTP site selection values?"))
|
||||
variable_unset(VAR_FTP_PATH);
|
||||
|
||||
cp = variable_get(VAR_FTP_PATH);
|
||||
/* If we've been through here before ... */
|
||||
if (!network_init && cp && msgYesNo("Re-use old FTP site selection values?"))
|
||||
cp = NULL;
|
||||
|
||||
if (!cp) {
|
||||
dialog_clear_norefresh();
|
||||
if (!dmenuOpenSimple(&MenuMediaFTP, FALSE))
|
||||
@ -337,7 +337,6 @@ mediaSetFTP(dialogMenuItem *self)
|
||||
"name server, gateway and network interface are correctly configured?", hostname);
|
||||
mediaDevice->shutdown(mediaDevice);
|
||||
network_init = TRUE;
|
||||
variable_unset(VAR_FTP_PATH);
|
||||
return DITEM_FAILURE | what;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: media.c,v 1.60 1996/10/09 09:53:38 jkh Exp $
|
||||
* $Id: media.c,v 1.61 1996/10/12 19:30:20 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -262,11 +262,11 @@ mediaSetFTP(dialogMenuItem *self)
|
||||
static Boolean network_init = 1;
|
||||
int what = DITEM_RESTORE;
|
||||
|
||||
/* If we've been through here before ... */
|
||||
if (!network_init && msgYesNo("Re-use old FTP site selection values?"))
|
||||
variable_unset(VAR_FTP_PATH);
|
||||
|
||||
cp = variable_get(VAR_FTP_PATH);
|
||||
/* If we've been through here before ... */
|
||||
if (!network_init && cp && msgYesNo("Re-use old FTP site selection values?"))
|
||||
cp = NULL;
|
||||
|
||||
if (!cp) {
|
||||
dialog_clear_norefresh();
|
||||
if (!dmenuOpenSimple(&MenuMediaFTP, FALSE))
|
||||
@ -337,7 +337,6 @@ mediaSetFTP(dialogMenuItem *self)
|
||||
"name server, gateway and network interface are correctly configured?", hostname);
|
||||
mediaDevice->shutdown(mediaDevice);
|
||||
network_init = TRUE;
|
||||
variable_unset(VAR_FTP_PATH);
|
||||
return DITEM_FAILURE | what;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user