summaryrefslogtreecommitdiff
path: root/testsuite/libsmbclient/src/rename
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/libsmbclient/src/rename')
-rw-r--r--testsuite/libsmbclient/src/rename/rename_1.c57
-rw-r--r--testsuite/libsmbclient/src/rename/rename_10.c64
-rw-r--r--testsuite/libsmbclient/src/rename/rename_11.c63
-rw-r--r--testsuite/libsmbclient/src/rename/rename_12.c58
-rw-r--r--testsuite/libsmbclient/src/rename/rename_13.c63
-rw-r--r--testsuite/libsmbclient/src/rename/rename_14.c58
-rw-r--r--testsuite/libsmbclient/src/rename/rename_2.c54
-rw-r--r--testsuite/libsmbclient/src/rename/rename_3.c56
-rw-r--r--testsuite/libsmbclient/src/rename/rename_4.c55
-rw-r--r--testsuite/libsmbclient/src/rename/rename_5.c59
-rw-r--r--testsuite/libsmbclient/src/rename/rename_6.c57
-rw-r--r--testsuite/libsmbclient/src/rename/rename_7.c66
-rw-r--r--testsuite/libsmbclient/src/rename/rename_8.c68
-rw-r--r--testsuite/libsmbclient/src/rename/rename_9.c68
14 files changed, 0 insertions, 846 deletions
diff --git a/testsuite/libsmbclient/src/rename/rename_1.c b/testsuite/libsmbclient/src/rename/rename_1.c
deleted file mode 100644
index d2650f9615..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_1.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
-
- strncpy(g_workgroup,argv[1],strlen(argv[1]));
- strncpy(g_username,argv[2],strlen(argv[2]));
- strncpy(g_password,argv[3],strlen(argv[3]));
- strncpy(url,argv[4],strlen(argv[4]));
-
- smbc_init(auth_fn, 0);
- err = smbc_rename( url, argv[5] );
-
- if ( err < 0 )
- err = 1;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_10.c b/testsuite/libsmbclient/src/rename/rename_10.c
deleted file mode 100644
index 42e5b55138..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_10.c
+++ /dev/null
@@ -1,64 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 9 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[6], strlen(argv[6]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_mkdir( argv[7], 0700 );
-
- strncpy( g_username, argv[4], strlen(argv[4]) );
- strncpy( g_password, argv[5], strlen(argv[5]) );
-
- smbc_rename( url, argv[8] );
-
- err = errno;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_11.c b/testsuite/libsmbclient/src/rename/rename_11.c
deleted file mode 100644
index e161fd35ec..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_11.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 5 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- err = smbc_rename( NULL, url );
-
- if ( err < 0 )
- err = 1;
-
- else
- err = 0;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_12.c b/testsuite/libsmbclient/src/rename/rename_12.c
deleted file mode 100644
index b4e80c897f..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_12.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 5 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_rename( NULL, url );
-
- err = errno;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_13.c b/testsuite/libsmbclient/src/rename/rename_13.c
deleted file mode 100644
index 46fa9e312f..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_13.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 5 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- err = smbc_rename( url, NULL );
-
- if ( err < 0 )
- err = 1;
-
- else
- err = 0;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_14.c b/testsuite/libsmbclient/src/rename/rename_14.c
deleted file mode 100644
index 2ba64a56ce..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_14.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 5 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_rename( url, NULL );
-
- err = errno;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_2.c b/testsuite/libsmbclient/src/rename/rename_2.c
deleted file mode 100644
index 5340577036..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_2.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy(g_workgroup,argv[1],strlen(argv[1]));
- strncpy(g_username,argv[2],strlen(argv[2]));
- strncpy(g_password,argv[3],strlen(argv[3]));
- strncpy(url,argv[4],strlen(argv[4]));
-
- smbc_init(auth_fn, 0);
- smbc_rename( url, argv[5] );
-
- err = errno;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_3.c b/testsuite/libsmbclient/src/rename/rename_3.c
deleted file mode 100644
index 84dc3b440a..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_3.c
+++ /dev/null
@@ -1,56 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy(g_workgroup,argv[1],strlen(argv[1]));
- strncpy(g_username,argv[2],strlen(argv[2]));
- strncpy(g_password,argv[3],strlen(argv[3]));
- strncpy(url,argv[4],strlen(argv[4]));
-
- smbc_init(auth_fn, 0);
- smbc_open(url,O_RDWR | O_CREAT,0666);
- err = smbc_rename( url, argv[5] );
-
- if ( err < 0 )
- err = 1;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_4.c b/testsuite/libsmbclient/src/rename/rename_4.c
deleted file mode 100644
index fc75fca14c..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_4.c
+++ /dev/null
@@ -1,55 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy(g_workgroup,argv[1],strlen(argv[1]));
- strncpy(g_username,argv[2],strlen(argv[2]));
- strncpy(g_password,argv[3],strlen(argv[3]));
- strncpy(url,argv[4],strlen(argv[4]));
-
- smbc_init(auth_fn, 0);
- smbc_open(url,O_RDWR | O_CREAT,0666);
- smbc_rename( url, argv[5] );
-
- err = errno;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_5.c b/testsuite/libsmbclient/src/rename/rename_5.c
deleted file mode 100644
index 58cc902905..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_5.c
+++ /dev/null
@@ -1,59 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd );
- err = smbc_rename( url, argv[5] );
-
- if ( err < 0 )
- err = 1;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_6.c b/testsuite/libsmbclient/src/rename/rename_6.c
deleted file mode 100644
index 7ea2afc603..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_6.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy(g_workgroup,argv[1],strlen(argv[1]));
- strncpy(g_username,argv[2],strlen(argv[2]));
- strncpy(g_password,argv[3],strlen(argv[3]));
- strncpy(url,argv[4],strlen(argv[4]));
-
- smbc_init(auth_fn, 0);
- fd = smbc_open(url,O_RDWR | O_CREAT,0666);
- smbc_close( fd );
- smbc_rename( url, argv[5] );
-
- err = errno;
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_7.c b/testsuite/libsmbclient/src/rename/rename_7.c
deleted file mode 100644
index 773cb6926d..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_7.c
+++ /dev/null
@@ -1,66 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- int fd2 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 6 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_rename( url, argv[5] );
- fd1 = smbc_open( url, O_RDWR, 0666 );
- fd2 = smbc_open( argv[5], O_RDWR, 0666 );
-
- if ( fd1 == -1 && fd2 != -1 )
- err = 0;
-
- else
- err = 1;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_8.c b/testsuite/libsmbclient/src/rename/rename_8.c
deleted file mode 100644
index 6a44d9fb63..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_8.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- int fd2 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 7 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[4], strlen(argv[4]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_mkdir( argv[5], 0666 );
- smbc_rename( url, argv[6] );
-
- fd1 = smbc_open( url, O_RDWR, 0666 );
- fd2 = smbc_open( argv[6], O_RDWR, 0666 );
-
- if ( fd1 == -1 && fd2 != -1 )
- err = 0;
-
- else
- err = 1;
-
-
- }
-
- return err;
-
-}
-
diff --git a/testsuite/libsmbclient/src/rename/rename_9.c b/testsuite/libsmbclient/src/rename/rename_9.c
deleted file mode 100644
index 3f0386db00..0000000000
--- a/testsuite/libsmbclient/src/rename/rename_9.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <libsmbclient.h>
-
-#define MAX_BUFF_SIZE 255
-char g_workgroup[MAX_BUFF_SIZE];
-char g_username[MAX_BUFF_SIZE];
-char g_password[MAX_BUFF_SIZE];
-char g_server[MAX_BUFF_SIZE];
-char g_share[MAX_BUFF_SIZE];
-
-
-static void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen,
- char *username, int unmaxlen, char *password, int pwmaxlen)
-{
-
- strncpy(workgroup, g_workgroup, wgmaxlen - 1);
-
- strncpy(username, g_username, unmaxlen - 1);
-
- strncpy(password, g_password, pwmaxlen - 1);
-
- strcpy(g_server, server);
- strcpy(g_share, share);
-
-}
-
-int main(int argc, char** argv)
-{
- int err = -1;
- int fd1 = 0;
- char url[MAX_BUFF_SIZE];
-
- memset(g_workgroup, '\0', MAX_BUFF_SIZE);
- memset(url, '\0', MAX_BUFF_SIZE);
-
- if ( argc == 9 )
- {
- strncpy( g_workgroup, argv[1], strlen(argv[1]) );
- strncpy( g_username, argv[2], strlen(argv[2]) );
- strncpy( g_password, argv[3], strlen(argv[3]) );
- strncpy( url, argv[6], strlen(argv[6]) );
-
- smbc_init( auth_fn, 0 );
- fd1 = smbc_open( url, O_RDWR | O_CREAT, 0666 );
- smbc_close( fd1 );
-
- smbc_mkdir( argv[7], 0700 );
-
- strncpy( g_username, argv[4], strlen(argv[4]) );
- strncpy( g_password, argv[5], strlen(argv[5]) );
-
- err = smbc_rename( url, argv[8] );
-
- if ( err < 0 )
- err = 1;
-
- else
- err = 0;
-
-
- }
-
- return err;
-
-}
-