chiark / gitweb /
label: fix labeling of symbolic links
[elogind.git] / src / label.c
index d9d195b50fa0fbd29a8dfd9d7b252c58490310b6..2c887a0fe52194ac3775966d3af6840d67a1f85d 100644 (file)
@@ -109,7 +109,7 @@ int label_fix(const char *path, bool ignore_enoent) {
                         return 0;
 
                 if (r == 0) {
-                        r = setfilecon(path, fcon);
+                        r = lsetfilecon(path, fcon);
                         freecon(fcon);
 
                         /* If the FS doesn't support labels, then exit without warning */