forked from rpms/openssh
Minor repair of sesftp patch
This commit is contained in:
parent
80bcb17706
commit
170a775711
@ -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));
|
||||||
+
|
+
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user