diff --git a/release/sysinstall/dmenu.c b/release/sysinstall/dmenu.c index 3b253e48892f..28e1f3aec60e 100644 --- a/release/sysinstall/dmenu.c +++ b/release/sysinstall/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.37 1998/03/15 19:30:46 jkh Exp $ + * $Id: dmenu.c,v 1.38 1999/02/05 22:15:48 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -88,7 +88,7 @@ dmenuExit(dialogMenuItem *tmp) int dmenuSetVariable(dialogMenuItem *tmp) { - variable_set((char *)tmp->data, 1); + variable_set((char *)tmp->data, *tmp != '_'); return DITEM_SUCCESS; } @@ -101,7 +101,7 @@ dmenuSetVariables(dialogMenuItem *tmp) for (cp1 = copy; cp1 != NULL;) { cp2 = index(cp1, ','); if (cp2 != NULL) *cp2++ = '\0'; - variable_set(cp1, 1); + variable_set(cp1, *cp1 != '_'); cp1 = cp2; } free(copy); @@ -137,7 +137,7 @@ dmenuToggleVariable(dialogMenuItem *tmp) return DITEM_FAILURE; } if (!variable_check(var)) - variable_set(var, 1); + variable_set(var, *var != '_'); else variable_unset(var); return DITEM_SUCCESS; @@ -161,7 +161,7 @@ dmenuISetVariable(dialogMenuItem *tmp) else if (!*ans) variable_unset(var); else - variable_set2(var, ans, 1); + variable_set2(var, ans, *var != '_'); return DITEM_SUCCESS; } diff --git a/release/sysinstall/sysinstall.h b/release/sysinstall/sysinstall.h index 922eb0725640..1d6a2ba8da89 100644 --- a/release/sysinstall/sysinstall.h +++ b/release/sysinstall/sysinstall.h @@ -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: sysinstall.h,v 1.155 1999/02/02 15:57:13 jkh Exp $ + * $Id: sysinstall.h,v 1.156 1999/02/05 22:15:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -104,7 +104,7 @@ #define VAR_CONFIG_FILE "configFile" #define VAR_FTP_DIR "ftpDirectory" #define VAR_FTP_PASS "ftpPass" -#define VAR_FTP_PATH "ftp" +#define VAR_FTP_PATH "_ftpPath" #define VAR_FTP_PORT "ftpPort" #define VAR_FTP_STATE "ftpState" #define VAR_FTP_USER "ftpUser" @@ -159,7 +159,7 @@ #define VAR_UFS_PATH "ufs" #define VAR_USR_SIZE "usrSize" #define VAR_VAR_SIZE "varSize" -#define VAR_XF86_CONFIG "xf86config" +#define VAR_XF86_CONFIG "_xf86config" #define DEFAULT_TAPE_BLOCKSIZE "20" diff --git a/usr.sbin/sade/dmenu.c b/usr.sbin/sade/dmenu.c index 3b253e48892f..28e1f3aec60e 100644 --- a/usr.sbin/sade/dmenu.c +++ b/usr.sbin/sade/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.37 1998/03/15 19:30:46 jkh Exp $ + * $Id: dmenu.c,v 1.38 1999/02/05 22:15:48 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -88,7 +88,7 @@ dmenuExit(dialogMenuItem *tmp) int dmenuSetVariable(dialogMenuItem *tmp) { - variable_set((char *)tmp->data, 1); + variable_set((char *)tmp->data, *tmp != '_'); return DITEM_SUCCESS; } @@ -101,7 +101,7 @@ dmenuSetVariables(dialogMenuItem *tmp) for (cp1 = copy; cp1 != NULL;) { cp2 = index(cp1, ','); if (cp2 != NULL) *cp2++ = '\0'; - variable_set(cp1, 1); + variable_set(cp1, *cp1 != '_'); cp1 = cp2; } free(copy); @@ -137,7 +137,7 @@ dmenuToggleVariable(dialogMenuItem *tmp) return DITEM_FAILURE; } if (!variable_check(var)) - variable_set(var, 1); + variable_set(var, *var != '_'); else variable_unset(var); return DITEM_SUCCESS; @@ -161,7 +161,7 @@ dmenuISetVariable(dialogMenuItem *tmp) else if (!*ans) variable_unset(var); else - variable_set2(var, ans, 1); + variable_set2(var, ans, *var != '_'); return DITEM_SUCCESS; } diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index 922eb0725640..1d6a2ba8da89 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -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: sysinstall.h,v 1.155 1999/02/02 15:57:13 jkh Exp $ + * $Id: sysinstall.h,v 1.156 1999/02/05 22:15:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -104,7 +104,7 @@ #define VAR_CONFIG_FILE "configFile" #define VAR_FTP_DIR "ftpDirectory" #define VAR_FTP_PASS "ftpPass" -#define VAR_FTP_PATH "ftp" +#define VAR_FTP_PATH "_ftpPath" #define VAR_FTP_PORT "ftpPort" #define VAR_FTP_STATE "ftpState" #define VAR_FTP_USER "ftpUser" @@ -159,7 +159,7 @@ #define VAR_UFS_PATH "ufs" #define VAR_USR_SIZE "usrSize" #define VAR_VAR_SIZE "varSize" -#define VAR_XF86_CONFIG "xf86config" +#define VAR_XF86_CONFIG "_xf86config" #define DEFAULT_TAPE_BLOCKSIZE "20" diff --git a/usr.sbin/sysinstall/dmenu.c b/usr.sbin/sysinstall/dmenu.c index 3b253e48892f..28e1f3aec60e 100644 --- a/usr.sbin/sysinstall/dmenu.c +++ b/usr.sbin/sysinstall/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.37 1998/03/15 19:30:46 jkh Exp $ + * $Id: dmenu.c,v 1.38 1999/02/05 22:15:48 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -88,7 +88,7 @@ dmenuExit(dialogMenuItem *tmp) int dmenuSetVariable(dialogMenuItem *tmp) { - variable_set((char *)tmp->data, 1); + variable_set((char *)tmp->data, *tmp != '_'); return DITEM_SUCCESS; } @@ -101,7 +101,7 @@ dmenuSetVariables(dialogMenuItem *tmp) for (cp1 = copy; cp1 != NULL;) { cp2 = index(cp1, ','); if (cp2 != NULL) *cp2++ = '\0'; - variable_set(cp1, 1); + variable_set(cp1, *cp1 != '_'); cp1 = cp2; } free(copy); @@ -137,7 +137,7 @@ dmenuToggleVariable(dialogMenuItem *tmp) return DITEM_FAILURE; } if (!variable_check(var)) - variable_set(var, 1); + variable_set(var, *var != '_'); else variable_unset(var); return DITEM_SUCCESS; @@ -161,7 +161,7 @@ dmenuISetVariable(dialogMenuItem *tmp) else if (!*ans) variable_unset(var); else - variable_set2(var, ans, 1); + variable_set2(var, ans, *var != '_'); return DITEM_SUCCESS; } diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index 922eb0725640..1d6a2ba8da89 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -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: sysinstall.h,v 1.155 1999/02/02 15:57:13 jkh Exp $ + * $Id: sysinstall.h,v 1.156 1999/02/05 22:15:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -104,7 +104,7 @@ #define VAR_CONFIG_FILE "configFile" #define VAR_FTP_DIR "ftpDirectory" #define VAR_FTP_PASS "ftpPass" -#define VAR_FTP_PATH "ftp" +#define VAR_FTP_PATH "_ftpPath" #define VAR_FTP_PORT "ftpPort" #define VAR_FTP_STATE "ftpState" #define VAR_FTP_USER "ftpUser" @@ -159,7 +159,7 @@ #define VAR_UFS_PATH "ufs" #define VAR_USR_SIZE "usrSize" #define VAR_VAR_SIZE "varSize" -#define VAR_XF86_CONFIG "xf86config" +#define VAR_XF86_CONFIG "_xf86config" #define DEFAULT_TAPE_BLOCKSIZE "20"