2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

treewide: spelling/typo fixes in code strings

Fix spelling errors in code strings. Some strings are translatable.
This fixes are potentially user visible.

Signed-off-by: Steve Beattie <steve.beattie@canonical.com>
Acked-by: Christian Boltz <apparmor@cboltz.de>
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/687
This commit is contained in:
Steve Beattie 2020-11-19 12:32:36 -08:00
parent 461d9c2294
commit 8b708d3b45
No known key found for this signature in database
GPG Key ID: 2F099E8D005E81F4
6 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@ msgstr ""
msgid ""
"%s: [options]\n"
" options:\n"
" -x | --exclusive Shared interfaces must be availabe\n"
" -x | --exclusive Shared interfaces must be available\n"
" -q | --quiet Don't print out any messages\n"
" -h | --help Print help\n"
msgstr ""

View File

@ -457,7 +457,7 @@ ostream &mnt_rule::dump(ostream &os)
else if (allow & AA_MAY_PIVOTROOT)
os << "pivotroot";
else
os << "error: unknonwn mount perm";
os << "error: unknown mount perm";
os << " (0x" << hex << flags << " - 0x" << inv_flags << ") ";
if (dev_type) {

View File

@ -847,13 +847,13 @@ int main(void)
MY_TEST(retval == 0, "get boolean variable 2");
retval = get_boolean_var("non_existant");
MY_TEST(retval < 0, "get nonexistant boolean variable");
MY_TEST(retval < 0, "get nonexistent boolean variable");
retval = get_boolean_var("stereopuff");
MY_TEST(retval < 0, "get boolean variable that's declared a set var");
retptr = get_set_var("daves_not_here_man");
MY_TEST(retptr == NULL, "get non-existent set variable");
MY_TEST(retptr == NULL, "get nonexistent set variable");
retptr = get_set_var("abuse");
MY_TEST(retptr == NULL, "get set variable that's declared a boolean");

View File

@ -68,7 +68,7 @@ static int handle_messages(void)
DBusMessage *message;
if (!dbus_connection_read_write(connection, 250)) {
fprintf(stderr, "FAIL: Connecion is closed\n");
fprintf(stderr, "FAIL: Connection is closed\n");
return -1;
}

View File

@ -493,7 +493,7 @@ def main():
found_config_keys = config[''].keys()
unknown_keys = [item for item in found_config_keys if item not in allowed_config_keys]
for item in unknown_keys:
print(_('Warning! Configration item "{}" is unknown!').format(item))
print(_('Warning! Configuration item "{}" is unknown!').format(item))
# Warn if use_group is defined and current group does not match defined
if 'use_group' in config['']:

View File

@ -46,7 +46,7 @@ def handle_exception(*exc_info):
print(''.join(traceback.format_exception(*exc_info)), file=sys.stderr)
print('', file=sys.stderr)
print('An unexpected error occoured!', file=sys.stderr)
print('An unexpected error occurred!', file=sys.stderr)
print('', file=sys.stderr)
print('For details, see %s' % path, file=sys.stderr)
print('Please consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues', file=sys.stderr)