From 170a77571143d0055adf92abfbb6b18032e0d1a9 Mon Sep 17 00:00:00 2001 From: Jan F. Chadima Date: Aug 26 2009 10:44:57 +0000 Subject: Minor repair of sesftp patch --- diff --git a/openssh-5.2p1-sesftp.patch b/openssh-5.2p1-sesftp.patch index fb23dfd..dad20ac 100644 --- a/openssh-5.2p1-sesftp.patch +++ b/openssh-5.2p1-sesftp.patch @@ -39,7 +39,7 @@ diff -up openssh-5.2p1/session.c.sesftp openssh-5.2p1/session.c + strcpy (c2 + l, "sftpd_t"); + if ((cx = index (cx + 1, ':'))) + strcat (c2, cx); -+ if (setcon ("system_u:system_r:sftpd_t:s0-s0:c0.c1023") < 0) ++ if (setcon (c2) < 0) + logit("do_child: setcon failed witch %s", strerror (errno)); + + }