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:*
|
||||
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
|
||||
|
||||
# Miix3-1030
|
||||
|
@ -473,10 +473,6 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM800W560L:*
|
|||
sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM101W610L:*
|
||||
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
|
||||
#########################################
|
||||
|
|
|
@ -724,15 +724,9 @@ static void swap_enter_active(Swap *s, SwapResult f) {
|
|||
static void swap_enter_dead_or_active(Swap *s, SwapResult f) {
|
||||
assert(s);
|
||||
|
||||
if (s->from_proc_swaps) {
|
||||
Swap *other;
|
||||
|
||||
if (s->from_proc_swaps)
|
||||
swap_enter_active(s, f);
|
||||
|
||||
LIST_FOREACH_OTHERS(same_devnode, other, s)
|
||||
if (UNIT(other)->job)
|
||||
swap_enter_dead_or_active(other, f);
|
||||
} else
|
||||
else
|
||||
swap_enter_dead(s, f);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@ else
|
|||
read -r -d '' -a line < /proc/cmdline
|
||||
for i in "${line[@]}"; do
|
||||
[[ "${i#initrd=*}" != "$i" ]] && continue
|
||||
[[ "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
||||
BOOT_OPTIONS+=("$i")
|
||||
done
|
||||
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));
|
||||
|
||||
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));
|
||||
|
||||
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))
|
||||
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));
|
||||
|
||||
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;
|
||||
int r;
|
||||
|
||||
if (!valid_user_group_name_compat(name))
|
||||
if (!valid_user_group_name(name))
|
||||
return -EINVAL;
|
||||
|
||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||
|
@ -700,7 +700,11 @@ int userdb_all(UserDBFlags flags, UserDBIterator **ret) {
|
|||
setpwent();
|
||||
iterator->nss_iterating = true;
|
||||
goto finish;
|
||||
} else if (r < 0)
|
||||
}
|
||||
|
||||
if (!FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE))
|
||||
goto finish;
|
||||
|
||||
return r;
|
||||
|
||||
finish:
|
||||
|
@ -797,7 +801,7 @@ int groupdb_by_name(const char *name, UserDBFlags flags, GroupRecord **ret) {
|
|||
_cleanup_(json_variant_unrefp) JsonVariant *query = NULL;
|
||||
int r;
|
||||
|
||||
if (!valid_user_group_name_compat(name))
|
||||
if (!valid_user_group_name(name))
|
||||
return -EINVAL;
|
||||
|
||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||
|
@ -990,7 +994,7 @@ int membershipdb_by_user(const char *name, UserDBFlags flags, UserDBIterator **r
|
|||
|
||||
assert(ret);
|
||||
|
||||
if (!valid_user_group_name_compat(name))
|
||||
if (!valid_user_group_name(name))
|
||||
return -EINVAL;
|
||||
|
||||
r = json_build(&query, JSON_BUILD_OBJECT(
|
||||
|
@ -1033,7 +1037,7 @@ int membershipdb_by_group(const char *name, UserDBFlags flags, UserDBIterator **
|
|||
|
||||
assert(ret);
|
||||
|
||||
if (!valid_user_group_name_compat(name))
|
||||
if (!valid_user_group_name(name))
|
||||
return -EINVAL;
|
||||
|
||||
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);
|
||||
goto check_nul_bytes;
|
||||
}
|
||||
if (!IN_SET(peripheral_device_type, 0x00, 0x14)) {
|
||||
if (peripheral_device_type != 0x00) {
|
||||
ret = -1;
|
||||
errno = EIO;
|
||||
goto out;
|
||||
|
|
Loading…
Reference in New Issue