mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:03:36 +03:00
badwords: fix two exceptions and drop them
Also: - extend `dir` rule to exclude C assignments. Closes #19532
This commit is contained in:
parent
f3095f0dbd
commit
af4c789e00
13 changed files with 27 additions and 27 deletions
|
|
@ -1677,7 +1677,7 @@ static int myssh_in_SFTP_QUOTE(struct Curl_easy *data,
|
|||
else if(!strncmp(cmd, "mkdir ", 6)) {
|
||||
if(*cp)
|
||||
return return_quote_error(data, sshc);
|
||||
/* create dir */
|
||||
/* create directory */
|
||||
myssh_to(data, sshc, SSH_SFTP_QUOTE_MKDIR);
|
||||
return SSH_NO_ERROR;
|
||||
}
|
||||
|
|
@ -1703,7 +1703,7 @@ static int myssh_in_SFTP_QUOTE(struct Curl_easy *data,
|
|||
return SSH_NO_ERROR;
|
||||
}
|
||||
else if(!strncmp(cmd, "rmdir ", 6)) {
|
||||
/* delete dir */
|
||||
/* delete directory */
|
||||
if(*cp)
|
||||
return return_quote_error(data, sshc);
|
||||
myssh_to(data, sshc, SSH_SFTP_QUOTE_RMDIR);
|
||||
|
|
@ -2157,9 +2157,9 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data,
|
|||
++sshc->slash_pos;
|
||||
if(rc < 0) {
|
||||
/*
|
||||
* Abort if failure was not that the dir already exists or the
|
||||
* permission was denied (creation might succeed further down the
|
||||
* path) - retry on unspecific FAILURE also
|
||||
* Abort if failure was not that the directory already exists or
|
||||
* the permission was denied (creation might succeed further down
|
||||
* the path) - retry on unspecific FAILURE also
|
||||
*/
|
||||
err = sftp_get_error(sshc->sftp_session);
|
||||
if((err != SSH_FX_FILE_ALREADY_EXISTS) &&
|
||||
|
|
@ -2744,7 +2744,7 @@ static CURLcode myssh_do_it(struct Curl_easy *data, bool *done)
|
|||
data->req.size = -1; /* make sure this is unknown at this point */
|
||||
|
||||
sshc->actualcode = CURLE_OK; /* reset error code */
|
||||
sshc->secondCreateDirs = 0; /* reset the create dir attempt state
|
||||
sshc->secondCreateDirs = 0; /* reset the create directory attempt state
|
||||
variable */
|
||||
|
||||
Curl_pgrsSetUploadCounter(data, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue