Replace the hardcode max path length with PATH_MAX

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Change-Id: Icb1d36b48a759ec11dbaa4c09a39037a80ab0f85
This commit is contained in:
Xiang Xiao
2021-05-09 23:53:28 +08:00
committed by Andreas Schneider
parent ae44d846b8
commit d2182bb7af
5 changed files with 12 additions and 10 deletions

View File

@@ -63,10 +63,6 @@
#define TORTURE_SSHD_CONFIG "sshd/sshd_config"
#define TORTURE_PCAP_FILE "socket_trace.pcap"
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
static const char torture_rsa_certauth_pub[]=
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnA2n5vHzZbs/GvRkGloJNV1CXHI"
"S5Xnrm05HusUJSWyPq3I1iCMHdYA7oezHa9GCFYbIenaYPy+G6USQRjYQz8SvAZo06"