summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/icb/patches/patch-ae23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/icb/patches/patch-ae b/net/icb/patches/patch-ae
new file mode 100644
index 00000000000..eda6d71990f
--- /dev/null
+++ b/net/icb/patches/patch-ae
@@ -0,0 +1,23 @@
+*** icb/unix.c.orig Fri Feb 24 16:20:31 1995
+--- icb/unix.c Thu Sep 3 10:28:33 1998
+***************
+*** 49,56 ****
+ if (((loginid = getlogin()) == NULL) || *loginid == '\0')
+ if ((pw = getpwuid(getuid())) == NULL)
+ loginid = NULL;
+! else
+! loginid = pw->pw_name;
+ return(loginid);
+ }
+
+--- 49,58 ----
+ if (((loginid = getlogin()) == NULL) || *loginid == '\0')
+ if ((pw = getpwuid(getuid())) == NULL)
+ loginid = NULL;
+! else {
+! loginid = malloc(strlen(pw->pw_name) + 1);
+! strcpy(loginid, pw->pw_name);
+! }
+ return(loginid);
+ }
+