Merge pull request #12783 from keszybz/a-few-unrelated-fixes
A few unrelated fixes
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"add-requires:Add Requires= dependencies to a unit"
|
||||
"reenable:Reenable one or more unit files"
|
||||
"preset:Enable/disable one or more unit files based on preset configuration"
|
||||
"preset-all:Enable/disable all unit files based on preset configuration"
|
||||
"set-default:Set the default target"
|
||||
"get-default:Query the default target"
|
||||
"edit:Edit one or more unit files"
|
||||
|
||||
@@ -319,7 +319,7 @@ uint32_t jenkins_hashlittle( const void *key, size_t length, uint32_t initval)
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER && !HAS_FEATURE_MEMORY_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ void jenkins_hashlittle2(
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER && !HAS_FEATURE_MEMORY_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
@@ -680,7 +680,7 @@ uint32_t jenkins_hashbig( const void *key, size_t length, uint32_t initval)
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER && !HAS_FEATURE_MEMORY_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
|
||||
@@ -203,6 +203,7 @@ int main(int argc, char *argv[]) {
|
||||
log_info("message size = %zu, contents =\n%s", sz, h);
|
||||
|
||||
#if HAVE_GLIB
|
||||
/* Work-around for asan bug. See c8d980a3e962aba2ea3a4cedf75fa94890a6d746. */
|
||||
#if !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
{
|
||||
GDBusMessage *g;
|
||||
|
||||
@@ -57,9 +57,10 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
|
||||
assert_se(arg_dest = dest_early);
|
||||
|
||||
r = generate_symlink();
|
||||
if (r < 0)
|
||||
if (r <= 0)
|
||||
return r;
|
||||
|
||||
/* We parse the command line only to emit warnings. */
|
||||
r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, 0);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");
|
||||
|
||||
Reference in New Issue
Block a user