aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql73/files/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql73/files/patch-aj')
-rw-r--r--databases/postgresql73/files/patch-aj67
1 files changed, 0 insertions, 67 deletions
diff --git a/databases/postgresql73/files/patch-aj b/databases/postgresql73/files/patch-aj
deleted file mode 100644
index 4231fc94ede9..000000000000
--- a/databases/postgresql73/files/patch-aj
+++ /dev/null
@@ -1,67 +0,0 @@
---- bin/pg_passwd/pg_passwd.c.orig Mon Apr 17 05:45:18 2000
-+++ bin/pg_passwd/pg_passwd.c Sat May 20 17:54:59 2000
-@@ -18,11 +18,15 @@
-
- #endif
-
-+#ifndef _POSIX_SOURCE
-+# define _PASSWORD_LEN 128 /* max length, not containing NULL */
-+#endif
-+
- char *comname;
- static void usage(FILE *stream);
- static void read_pwd_file(char *filename);
- static void write_pwd_file(char *filename, char *bkname);
--static void encrypt_pwd(char key[9], char salt[3], char passwd[14]);
-+static void encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1]);
- static void prompt_for_username(char *username);
- static void prompt_for_password(char *prompt, char *password);
-
-@@ -150,7 +154,7 @@
-
- if (q != NULL)
- *(q++) = '\0';
-- if (strlen(p) != 13)
-+ if (strlen(p) > _PASSWORD_LEN)
- {
- fprintf(stderr, "WARNING: %s: line %d: illegal password length.\n",
- filename, npwds + 1);
-@@ -214,7 +218,7 @@
- }
-
- static void
--encrypt_pwd(char key[9], char salt[3], char passwd[14])
-+encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1])
- {
- int n;
-
-@@ -246,9 +250,9 @@
-
- #ifdef NOT_USED
- static int
--check_pwd(char key[9], char passwd[14])
-+check_pwd(char key[9], char passwd[_PASSWORD_LEN+1])
- {
-- char shouldbe[14];
-+ char shouldbe[_PASSWORD_LEN+1];
- char salt[3];
-
- salt[0] = passwd[0];
-@@ -256,7 +260,7 @@
- salt[2] = '\0';
- encrypt_pwd(key, salt, shouldbe);
-
-- return strncmp(shouldbe, passwd, 13) == 0 ? 1 : 0;
-+ return strncmp(shouldbe, passwd, _PASSWORD_LEN) == 0 ? 1 : 0;
- }
-
- #endif
-@@ -332,7 +336,7 @@
- char salt[3];
- char key[9],
- key2[9];
-- char e_passwd[14];
-+ char e_passwd[_PASSWORD_LEN+1];
- int i;
-
- comname = argv[0];