]> err.no Git - systemd/commitdiff
label: fix labeling of symbolic links
authorDan Walsh <dwalsh@redhat.com>
Mon, 19 Dec 2011 22:55:29 +0000 (23:55 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 19 Dec 2011 22:58:58 +0000 (23:58 +0100)
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 */