2000-02-01 00:07:54 +00:00
|
|
|
--- nessus/preferences.c.orig Sun Jan 30 12:22:46 2000
|
|
|
|
+++ nessus/preferences.c Sun Jan 30 12:23:27 2000
|
|
|
|
@@ -60,27 +60,6 @@
|
|
|
|
if(Alt_rcfile)return Alt_rcfile;
|
|
|
|
else
|
|
|
|
{
|
1999-12-01 05:27:13 +00:00
|
|
|
-#ifdef ENABLE_CRYPTO_LAYER
|
|
|
|
- char *t, *s = peks_get_dirfile (NESSUS_RCFILE);
|
|
|
|
- if (s == 0)
|
|
|
|
- return 0 ;
|
|
|
|
- /* peks uses another memory management */
|
|
|
|
- t = estrdup (s);
|
|
|
|
- xfree (s);
|
1999-12-27 21:49:06 +00:00
|
|
|
-#ifdef _WIN32
|
|
|
|
- /* on Windows we have no HOME varable set, by default */
|
|
|
|
- if (getenv("HOME") == 0 && (s = peks_get_homedir (0)) != 0) {
|
|
|
|
- char *e = strcat (strcpy (pmalloc (strlen (s) + 10), "HOME="), s);
|
|
|
|
-# ifdef HAVE__PUTENV
|
|
|
|
- _putenv (e);
|
|
|
|
-# else
|
|
|
|
- putenv (e);
|
|
|
|
-# endif
|
|
|
|
- xfree (e);
|
|
|
|
- }
|
|
|
|
-#endif /* _WIN32 */
|
1999-12-01 05:27:13 +00:00
|
|
|
- return t;
|
|
|
|
-#else
|
|
|
|
char* home;
|
|
|
|
char * ret;
|
|
|
|
struct passwd * pwd;
|
2000-02-01 00:07:54 +00:00
|
|
|
@@ -100,7 +79,6 @@
|
1999-12-01 05:27:13 +00:00
|
|
|
return(ret);
|
|
|
|
}
|
|
|
|
return(NULL);
|
|
|
|
-#endif
|
2000-02-01 00:07:54 +00:00
|
|
|
}
|
1999-12-01 05:27:13 +00:00
|
|
|
}
|
|
|
|
|