@@ -451,15 +451,15 @@ write_to_fd (int fd,
451
451
452
452
/* Sets errno on error (!= 0), ENOSPC on short write */
453
453
int
454
- write_file_at (int dirfd ,
454
+ write_file_at (int dfd ,
455
455
const char * path ,
456
456
const char * content )
457
457
{
458
458
int fd ;
459
459
bool res ;
460
460
int errsv ;
461
461
462
- fd = TEMP_FAILURE_RETRY (openat (dirfd , path , O_RDWR | O_CLOEXEC , 0 ));
462
+ fd = TEMP_FAILURE_RETRY (openat (dfd , path , O_RDWR | O_CLOEXEC , 0 ));
463
463
if (fd == -1 )
464
464
return -1 ;
465
465
@@ -639,14 +639,14 @@ load_file_data (int fd,
639
639
/* Sets errno on error (== NULL),
640
640
* Always ensures terminating zero */
641
641
char *
642
- load_file_at (int dirfd ,
642
+ load_file_at (int dfd ,
643
643
const char * path )
644
644
{
645
645
int fd ;
646
646
char * data ;
647
647
int errsv ;
648
648
649
- fd = TEMP_FAILURE_RETRY (openat (dirfd , path , O_CLOEXEC | O_RDONLY ));
649
+ fd = TEMP_FAILURE_RETRY (openat (dfd , path , O_CLOEXEC | O_RDONLY ));
650
650
if (fd == -1 )
651
651
return NULL ;
652
652
@@ -752,7 +752,7 @@ mkdir_with_parents (const char *pathname,
752
752
read back with read_pid_from_socket(), and then the kernel has
753
753
translated it between namespaces as needed. */
754
754
void
755
- send_pid_on_socket (int socket )
755
+ send_pid_on_socket (int sockfd )
756
756
{
757
757
char buf [1 ] = { 0 };
758
758
struct msghdr msg = {};
@@ -777,7 +777,7 @@ send_pid_on_socket (int socket)
777
777
cred -> uid = geteuid ();
778
778
cred -> gid = getegid ();
779
779
780
- if (TEMP_FAILURE_RETRY (sendmsg (socket , & msg , 0 )) < 0 )
780
+ if (TEMP_FAILURE_RETRY (sendmsg (sockfd , & msg , 0 )) < 0 )
781
781
die_with_error ("Can't send pid" );
782
782
}
783
783
@@ -794,7 +794,7 @@ create_pid_socketpair (int sockets[2])
794
794
}
795
795
796
796
int
797
- read_pid_from_socket (int socket )
797
+ read_pid_from_socket (int sockfd )
798
798
{
799
799
char recv_buf [1 ] = { 0 };
800
800
struct msghdr msg = {};
@@ -808,7 +808,7 @@ read_pid_from_socket (int socket)
808
808
msg .msg_control = control_buf_rcv ;
809
809
msg .msg_controllen = control_len_rcv ;
810
810
811
- if (TEMP_FAILURE_RETRY (recvmsg (socket , & msg , 0 )) < 0 )
811
+ if (TEMP_FAILURE_RETRY (recvmsg (sockfd , & msg , 0 )) < 0 )
812
812
die_with_error ("Can't read pid from socket" );
813
813
814
814
if (msg .msg_controllen <= 0 )
0 commit comments