Compare commits
No commits in common. "e9b0b64f77fd5e870ee4c28064563f1e0071a4ff" and "aaaf42cb44d4fcd598fca441a11856f3e8dd06d8" have entirely different histories.
e9b0b64f77
...
aaaf42cb44
|
@ -384,7 +384,7 @@ sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD*
|
||||||
sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
|
sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
|
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||||
|
|
||||||
sensor:modalias:acpi:BOSC0200*:dmi:*ThinkPadYoga11e3rdGen*
|
sensor:modalias:acpi:BOSC0200:BOSC0200:dmi:*ThinkPadYoga11e3rdGen*
|
||||||
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
|
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
|
||||||
|
|
||||||
# Miix3-1030
|
# Miix3-1030
|
||||||
|
@ -473,10 +473,6 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM800W560L:*
|
||||||
sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM101W610L:*
|
sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM101W610L:*
|
||||||
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||||
|
|
||||||
# Nuvision Encite Split 11. NES11-C432SSA
|
|
||||||
sensor:modalias:acpi:BOSC0200*:dmi:*:svnNuvision:pnNES11:*
|
|
||||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
# Onda
|
# Onda
|
||||||
#########################################
|
#########################################
|
||||||
|
|
|
@ -724,15 +724,9 @@ static void swap_enter_active(Swap *s, SwapResult f) {
|
||||||
static void swap_enter_dead_or_active(Swap *s, SwapResult f) {
|
static void swap_enter_dead_or_active(Swap *s, SwapResult f) {
|
||||||
assert(s);
|
assert(s);
|
||||||
|
|
||||||
if (s->from_proc_swaps) {
|
if (s->from_proc_swaps)
|
||||||
Swap *other;
|
|
||||||
|
|
||||||
swap_enter_active(s, f);
|
swap_enter_active(s, f);
|
||||||
|
else
|
||||||
LIST_FOREACH_OTHERS(same_devnode, other, s)
|
|
||||||
if (UNIT(other)->job)
|
|
||||||
swap_enter_dead_or_active(other, f);
|
|
||||||
} else
|
|
||||||
swap_enter_dead(s, f);
|
swap_enter_dead(s, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,6 @@ else
|
||||||
read -r -d '' -a line < /proc/cmdline
|
read -r -d '' -a line < /proc/cmdline
|
||||||
for i in "${line[@]}"; do
|
for i in "${line[@]}"; do
|
||||||
[[ "${i#initrd=*}" != "$i" ]] && continue
|
[[ "${i#initrd=*}" != "$i" ]] && continue
|
||||||
[[ "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
|
||||||
BOOT_OPTIONS+=("$i")
|
BOOT_OPTIONS+=("$i")
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4107,7 +4107,7 @@ int json_dispatch_user_group_name(const char *name, JsonVariant *variant, JsonDi
|
||||||
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a string.", strna(name));
|
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a string.", strna(name));
|
||||||
|
|
||||||
n = json_variant_string(variant);
|
n = json_variant_string(variant);
|
||||||
if (!valid_user_group_name_compat(n))
|
if (!valid_user_group_name(n))
|
||||||
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a valid user/group name.", strna(name));
|
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a valid user/group name.", strna(name));
|
||||||
|
|
||||||
r = free_and_strdup(s, n);
|
r = free_and_strdup(s, n);
|
||||||
|
|
|
@ -600,7 +600,7 @@ int json_dispatch_user_group_list(const char *name, JsonVariant *variant, JsonDi
|
||||||
if (!json_variant_is_string(e))
|
if (!json_variant_is_string(e))
|
||||||
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a string.");
|
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a string.");
|
||||||
|
|
||||||
if (!valid_user_group_name_compat(json_variant_string(e)))
|
if (!valid_user_group_name(json_variant_string(e)))
|
||||||
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a valid user/group name: %s", json_variant_string(e));
|
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a valid user/group name: %s", json_variant_string(e));
|
||||||
|
|
||||||
r = strv_extend(&l, json_variant_string(e));
|
r = strv_extend(&l, json_variant_string(e));
|
||||||
|
|
|
@ -587,7 +587,7 @@ int userdb_by_name(const char *name, UserDBFlags flags, UserRecord **ret) {
|
||||||
_cleanup_(json_variant_unrefp) JsonVariant *query = NULL;
|
_cleanup_(json_variant_unrefp) JsonVariant *query = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!valid_user_group_name_compat(name))
|
if (!valid_user_group_name(name))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||||
|
@ -700,7 +700,11 @@ int userdb_all(UserDBFlags flags, UserDBIterator **ret) {
|
||||||
setpwent();
|
setpwent();
|
||||||
iterator->nss_iterating = true;
|
iterator->nss_iterating = true;
|
||||||
goto finish;
|
goto finish;
|
||||||
} else if (r < 0)
|
}
|
||||||
|
|
||||||
|
if (!FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE))
|
||||||
|
goto finish;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
@ -797,7 +801,7 @@ int groupdb_by_name(const char *name, UserDBFlags flags, GroupRecord **ret) {
|
||||||
_cleanup_(json_variant_unrefp) JsonVariant *query = NULL;
|
_cleanup_(json_variant_unrefp) JsonVariant *query = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!valid_user_group_name_compat(name))
|
if (!valid_user_group_name(name))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||||
|
@ -990,7 +994,7 @@ int membershipdb_by_user(const char *name, UserDBFlags flags, UserDBIterator **r
|
||||||
|
|
||||||
assert(ret);
|
assert(ret);
|
||||||
|
|
||||||
if (!valid_user_group_name_compat(name))
|
if (!valid_user_group_name(name))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||||
|
@ -1033,7 +1037,7 @@ int membershipdb_by_group(const char *name, UserDBFlags flags, UserDBIterator **
|
||||||
|
|
||||||
assert(ret);
|
assert(ret);
|
||||||
|
|
||||||
if (!valid_user_group_name_compat(name))
|
if (!valid_user_group_name(name))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||||
|
|
|
@ -354,7 +354,7 @@ static int disk_identify(int fd,
|
||||||
ret = disk_identify_packet_device_command(fd, out_identify, 512);
|
ret = disk_identify_packet_device_command(fd, out_identify, 512);
|
||||||
goto check_nul_bytes;
|
goto check_nul_bytes;
|
||||||
}
|
}
|
||||||
if (!IN_SET(peripheral_device_type, 0x00, 0x14)) {
|
if (peripheral_device_type != 0x00) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
errno = EIO;
|
errno = EIO;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue