Minor repair of sesftp patch

This commit is contained in:
Jan F. Chadima 2009-08-26 10:44:57 +00:00
parent 80bcb17706
commit 170a775711

View File

@ -39,7 +39,7 @@ diff -up openssh-5.2p1/session.c.sesftp openssh-5.2p1/session.c
+ strcpy (c2 + l, "sftpd_t"); + strcpy (c2 + l, "sftpd_t");
+ if ((cx = index (cx + 1, ':'))) + if ((cx = index (cx + 1, ':')))
+ strcat (c2, cx); + 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)); + logit("do_child: setcon failed witch %s", strerror (errno));
+ +
+ } + }