blob: d30f542889c41027ade4aebac5d9ae4256e3c968 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--- 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
{
-#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);
-#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 */
- return t;
-#else
char* home;
char * ret;
struct passwd * pwd;
@@ -100,7 +79,6 @@
return(ret);
}
return(NULL);
-#endif
}
}
|