libbb: introduce and use BB_EXECVP_or_die()
[platform/upstream/busybox.git] / networking / tcpudp.c
index 4e47567..53e622b 100644 (file)
@@ -501,10 +501,10 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv)
 #ifdef SSLSVD
        strcpy(id, utoa(pid));
        ssl_io(0, argv);
+       bb_perror_msg_and_die("can't execute '%s'", argv[0]);
 #else
-       BB_EXECVP(argv[0], argv);
+       BB_EXECVP_or_die(argv);
 #endif
-       bb_perror_msg_and_die("can't execute '%s'", argv[0]);
 }
 
 /*