2828
2929#include <errno.h>
3030#include <grp.h>
31+ #include <libgen.h>
3132#include <linux/capability.h>
3233#include <malloc.h>
3334#include <pthread.h>
3435#include <pwd.h>
35- #include <libgen.h>
3636#include <signal.h>
3737#include <stddef.h>
3838#include <stdio.h>
@@ -321,7 +321,8 @@ static int curl_get_file(const char *url, const char *prefix, time_t timestamp)
321321 }
322322
323323 /* test extraction first */
324- if (asprintf (& command , "tar -C /var/cache/debuginfo/%s --no-same-owner "
324+ if (asprintf (& command ,
325+ "tar -C /var/cache/debuginfo/%s --no-same-owner "
325326 "--no-same-permissions -tf %s" ,
326327 prefix ,
327328 filename ) < 0 ) {
@@ -336,7 +337,8 @@ static int curl_get_file(const char *url, const char *prefix, time_t timestamp)
336337 }
337338
338339 free (command ); /* reuse */
339- if (asprintf (& command , "tar -C /var/cache/debuginfo/%s --no-same-owner "
340+ if (asprintf (& command ,
341+ "tar -C /var/cache/debuginfo/%s --no-same-owner "
340342 "--no-same-permissions -xf %s" ,
341343 prefix ,
342344 filename ) < 0 ) {
@@ -543,8 +545,8 @@ int main(__nc_unused__ int argc, __nc_unused__ char **argv)
543545 strcpy (sun .sun_path , SOCKET_PATH );
544546
545547 ret = bind (sockfd ,
546- (struct sockaddr * )& sun ,
547- offsetof(struct sockaddr_un , sun_path ) + strlen (SOCKET_PATH ) + 1 );
548+ (struct sockaddr * )& sun ,
549+ offsetof(struct sockaddr_un , sun_path ) + strlen (SOCKET_PATH ) + 1 );
548550 if (ret < 0 ) {
549551 fprintf (stderr , "Failed to bind:%s \n" , strerror (errno ));
550552 exit (EXIT_FAILURE );
@@ -591,7 +593,6 @@ int main(__nc_unused__ int argc, __nc_unused__ char **argv)
591593 break ;
592594 }
593595
594-
595596 clientsock = accept (sockfd , NULL , NULL );
596597
597598 /* Too many connections, wait for the next loop/retry */
0 commit comments