summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 18:37:25 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 18:37:25 +0100
commit34a3e4ecad5fd2042eb83ffcbf30379a536cc3ee (patch)
tree6006de7db363836737e4ceff908b333789075d02 /Makefile.am
parent98cd2651988619bf606f0b27825440c4638a7e0b (diff)
cap-list: return lower-case capability names, similar to libcap's cap_to_name(), for compat reasons
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 417074945f..4545cfebeb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1252,7 +1252,7 @@ src/shared/cap-list.txt:
$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
src/shared/cap-to-name.h: src/shared/cap-list.txt
- $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
+ $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
src/shared/cap-from-name.gperf: src/shared/cap-list.txt
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@