1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-12 18:32:08 +02:00

maint: minor cleanup

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.
This commit is contained in:
Bernhard Voelker
2020-11-22 13:05:29 +01:00
parent fc372b4ba7
commit 344cf0ee5f
3 changed files with 9 additions and 10 deletions

11
.gitignore vendored
View 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
@@ -78,14 +78,15 @@
/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
@@ -173,12 +174,12 @@
/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

View 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

View File

@@ -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;