summaryrefslogtreecommitdiff
path: root/system/ksh/patches/linux/main_c.diff
blob: a5d90620c11bda55cb864db7d26ee28b38508ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ksh-openbsd_cvs/main.c	2010-02-23 12:49:19.000000000 +0100
+++ ksh-openbsd_cvs.new/main.c	2010-04-01 21:01:24.134232647 +0200
@@ -9,7 +9,12 @@
 #include "sh.h"
 #include <sys/stat.h>
 #include <pwd.h>
+#include "strlcpy.h"
 
+/* on Linux we do not have _PW_NAME_LEN, but libc6 allows us 32 character usernames */
+#ifndef _PW_NAME_LEN 
+# define _PW_NAME_LEN 31
+#endif
 extern char **environ;
 
 /*