@@ -891,7 +891,7 @@ static int manager_assess_image(
891891
892892 r = btrfs_is_subvol_fd (fd );
893893 if (r < 0 )
894- return log_warning_errno (errno , "Failed to determine whether %s is a btrfs subvolume: %m" , path );
894+ return log_warning_errno (r , "Failed to determine whether %s is a btrfs subvolume: %m" , path );
895895 if (r > 0 )
896896 storage = USER_SUBVOLUME ;
897897 else {
@@ -1415,7 +1415,7 @@ static int manager_generate_key_pair(Manager *m) {
14151415 /* Write out public key (note that we only do that as a help to the user, we don't make use of this ever */
14161416 r = fopen_temporary ("/var/lib/systemd/home/local.public" , & fpublic , & temp_public );
14171417 if (r < 0 )
1418- return log_error_errno (errno , "Failed to open key file for writing: %m" );
1418+ return log_error_errno (r , "Failed to open key file for writing: %m" );
14191419
14201420 if (PEM_write_PUBKEY (fpublic , m -> private_key ) <= 0 )
14211421 return log_error_errno (SYNTHETIC_ERRNO (EIO ), "Failed to write public key." );
@@ -1429,7 +1429,7 @@ static int manager_generate_key_pair(Manager *m) {
14291429 /* Write out the private key (this actually writes out both private and public, OpenSSL is confusing) */
14301430 r = fopen_temporary ("/var/lib/systemd/home/local.private" , & fprivate , & temp_private );
14311431 if (r < 0 )
1432- return log_error_errno (errno , "Failed to open key file for writing: %m" );
1432+ return log_error_errno (r , "Failed to open key file for writing: %m" );
14331433
14341434 if (PEM_write_PrivateKey (fprivate , m -> private_key , NULL , NULL , 0 , NULL , 0 ) <= 0 )
14351435 return log_error_errno (SYNTHETIC_ERRNO (EIO ), "Failed to write private key pair." );
0 commit comments