1 diff -up joe-3.7/configure.selinux joe-3.7/configure
2 --- joe-3.7/configure.selinux 2008-10-30 04:07:22.000000000 +0100
3 +++ joe-3.7/configure 2009-02-02 11:13:50.000000000 +0100
4 @@ -6531,7 +6531,7 @@ if test "$ac_cv_header_selinux_selinux_h
5 cat >>confdefs.h <<\_ACEOF
9 +LIBS="$LIBS -lselinux"
12 # Checks for typedefs, structures, and compiler characteristics.
13 diff -up joe-3.7/selinux.c.selinux joe-3.7/selinux.c
14 --- joe-3.7/selinux.c.selinux 2006-05-22 06:15:41.000000000 +0200
15 +++ joe-3.7/selinux.c 2009-02-02 11:13:50.000000000 +0100
24 #include <selinux/selinux.h>
25 static int selinux_enabled = -1;
28 copy_security_context(const char *from_file, const char *to_file)
33 security_context_t from_context;
34 security_context_t to_context;
36 @@ -38,9 +40,7 @@ copy_security_context(const char *from_f
39 if (getfilecon(to_file, &to_context) < 0) {
40 - MSG_PUTS(_(joe_gettext(_("\nCould not get security context for "))));
41 - msg_outtrans(to_file);
43 + error(0, errno, "Could not get security context for %s", to_file);
44 freecon(from_context);
47 @@ -63,7 +63,7 @@ copy_security_context(const char *from_f
49 match_default_security_context(const char *from_file)
53 security_context_t scontext;
55 if (selinux_enabled == -1)
56 @@ -102,7 +102,7 @@ match_default_security_context(const cha
58 reset_default_security_context()
62 if (selinux_enabled == -1)
63 selinux_enabled = (is_selinux_enabled() > 0);
65 @@ -121,7 +121,7 @@ reset_default_security_context()
67 output_security_context(char *from_file)
71 security_context_t scontext;
73 if (selinux_enabled == -1)
74 @@ -153,7 +153,7 @@ output_security_context(char *from_file)
77 Test program compile using the following command
78 - cc -o t t.c -DWITH_SELINUX -DTEST -lselinux
79 + cc -o t t.c -DHAVE_SELINUX -DTEST -lselinux
83 diff -up joe-3.7/ufile.c.selinux joe-3.7/ufile.c
84 --- joe-3.7/ufile.c.selinux 2008-11-02 21:39:52.000000000 +0100
85 +++ joe-3.7/ufile.c 2009-02-02 11:13:50.000000000 +0100
92 int copy_security_context(const char *from_file, const char *to_file);
95 @@ -157,7 +157,7 @@ static int cp(unsigned char *from, unsig
96 utime((char *)to, &utbuf);
101 copy_security_context(from,to);