Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glob("/etc/openvpn/*.conf", 0, NULL, &gl);
- glob("/etc/openvpn/*.ovpn", GLOB_APPEND, NULL, &gl);
- char home[500]; char home2[500];
- strcpy(home,getenv ("HOME")); strcpy(home2,getenv ("HOME"));
- strcat(home,"/.openvpn/*.ovpn"); strcat(home2,"/.openvpn/*.conf");
- glob(home, GLOB_APPEND, NULL, &gl); glob(home2, GLOB_APPEND, NULL, &gl);
Add Comment
Please, Sign In to add comment