1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/security/nessus-devel/files/patch-ag
Steve Price c6e1440585 Update to version 0.99.2
PR:		15714 (1 of 4)
Submitted by:	maintainer
1999-12-27 21:49:06 +00:00

39 lines
870 B
Plaintext

--- nessus/preferences.c.old Mon Dec 27 10:39:54 1999
+++ nessus/preferences.c Mon Dec 27 10:42:11 1999
@@ -57,27 +57,6 @@
static char *
preferences_get_filename()
{
-#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;
@@ -97,7 +76,6 @@
return(ret);
}
return(NULL);
-#endif
}
static int preferences_new()