]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: minor cleanup
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 22 Nov 2020 12:05:29 +0000 (13:05 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 22 Nov 2020 14:17:17 +0000 (15:17 +0100)
The previous commit introduced a couple of syntax-check failures.

* .gitignore (/lib/se-label.h): Add entry to silence the
sc_gitignore_missing check.  Sort entries in C locale.
* po/POTFILES.in (src/selinux.c): Remove entry as this source doesn't
contain any translatable strings anymore; avoids a sc_po_check failure.
* src/mv.c: Replace tabs by spaces to avoid complaints by
sc_prohibit_tab_based_indentation.

.gitignore
po/POTFILES.in
src/mv.c

index e1abcdfb7702b0528f2eaa41ed9899ceb18981d7..103fd4ba5bb3f041cd4ecc3fb15cae217d1ee346 100644 (file)
@@ -39,8 +39,8 @@
 /coreutils-*.tar.gz.sig
 /coreutils-*.tar.xz
 /coreutils-*.tar.xz.sig
-/doc/manual
 /doc/coverage
+/doc/manual
 /gnulib-tests
 /lib/.dirstamp
 /lib/.gitignore
@@ -59,8 +59,8 @@
 /lib/fcntl.h
 /lib/float.h
 /lib/fnmatch.h
-/lib/getopt.h
 /lib/getopt-cdefs.h
+/lib/getopt.h
 /lib/glthread
 /lib/iconv.h
 /lib/iconv_open-aix.h
 /lib/math.h
 /lib/netdb.h
 /lib/netinet/in.h
-/lib/parse-datetime.c
 /lib/parse-datetime-gen.h
+/lib/parse-datetime.c
 /lib/printf.c
 /lib/pthread.h
 /lib/ref-add.sed
 /lib/ref-del.sed
 /lib/sched.h
 /lib/se-context.h
+/lib/se-label.h
 /lib/se-selinux.h
 /lib/selinux
 /lib/signal.h
 /po/remove-potcdate.sin
 /po/stamp-po
 /src/coreutils.h
-/src/coreutils_symlinks
 /src/coreutils_shebangs
+/src/coreutils_symlinks
 /src/cu-progs.mk
-/src/fs-latest-magic.h
 /src/fs-def
 /src/fs-kernel-magic
+/src/fs-latest-magic.h
 /src/fs-magic
 /src/libsinglebin_*.a
 /src/make-prime-list
index 074322393a39113479e440a87b18940a49f1158e..5ccc0e9a90013c4693d838e1550f62f7d541c151 100644 (file)
@@ -109,7 +109,6 @@ src/remove.c
 src/rm.c
 src/rmdir.c
 src/runcon.c
-src/selinux.c
 src/seq.c
 src/set-fields.c
 src/shred.c
index 21621af215a322550bb81ca553129847a727f818..6855f537380fa8495a2e8f23478f2f63d82d104e 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -417,10 +417,9 @@ main (int argc, char **argv)
           if (selinux_enabled)
             {
               x.preserve_security_context = false;
-             x.set_security_context = selabel_open (SELABEL_CTX_FILE,
-                                                    NULL, 0);
-             if (! x.set_security_context)
-               error (0, errno, _("warning: ignoring --context"));
+              x.set_security_context = selabel_open (SELABEL_CTX_FILE, NULL, 0);
+              if (! x.set_security_context)
+                error (0, errno, _("warning: ignoring --context"));
             }
           break;
         case_GETOPT_HELP_CHAR;