openbsd-ports/security/sqlat/patches/patch-sqldirtree_c
2002-09-24 02:21:43 +00:00

25 lines
826 B
Plaintext

$OpenBSD: patch-sqldirtree_c,v 1.2 2002/09/24 02:21:44 mark Exp $
--- sqldirtree.c.orig Mon Dec 3 10:08:30 2001
+++ sqldirtree.c Sun Sep 22 23:32:40 2002
@@ -22,7 +22,6 @@
#include "util.h"
#include "constants.h"
#include "sqldumplogins.h"
-#include <getopt.h>
void usage(char **argv) {
@@ -63,9 +62,11 @@ TDSLOGIN *set_target_defaults(TDSLOGIN *
void doDirTree(TDSLOGIN *pLogin, char *pDir) {
TDSSOCKET *pTds = NULL;
+ TDSCONTEXT *context = NULL;
/* connect to the SQL server */
- if( (pTds = tds_connect(pLogin)) !=NULL ) {
+ context = tds_alloc_context();
+ if( (pTds = tds_connect(pLogin, context, NULL)) !=NULL ) {
fprintf(stderr, "SQLDumpLogins %s by <patrik.karlsson@ixsecurity.com>\n",
SQLTOOLS_VERSION);
fprintf(stderr, "----------------------------------------------------" \