forked from pool/libselinux
c400328f5b
- Added skip_cycles.patch to skip directory cycles and not error out OBS-URL: https://build.opensuse.org/request/show/810878 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=124
17 lines
511 B
Diff
17 lines
511 B
Diff
Index: libselinux-3.0/src/selinux_restorecon.c
|
|
===================================================================
|
|
--- libselinux-3.0.orig/src/selinux_restorecon.c
|
|
+++ libselinux-3.0/src/selinux_restorecon.c
|
|
@@ -991,9 +991,8 @@ int selinux_restorecon(const char *pathn
|
|
selinux_log(SELINUX_ERROR,
|
|
"Directory cycle on %s.\n",
|
|
ftsent->fts_path);
|
|
- errno = ELOOP;
|
|
- error = -1;
|
|
- goto out;
|
|
+ fts_set(fts, ftsent, FTS_SKIP);
|
|
+ continue;
|
|
case FTS_DP:
|
|
continue;
|
|
case FTS_DNR:
|