Displaying 1 result from an estimated 1 matches for "status_to_logstr".
2002 Mar 15
4
PATCH: sftp-server logging.
...#define CUNAME cuname ? cuname : "UNKNOWN"
+ struct passwd *upw;
+ uid_t cuid;
+ pid_t ppid;
+ char *cuname;
+ #endif
+
/* portable attibutes, etc. */
typedef struct Stat Stat;
***************
*** 93,98 ****
--- 102,126 ----
return ret;
}
+ #ifdef SFTP_LOGGING
+ char*
+ status_to_logstr(int status)
+ {
+ switch (status) {
+ case SSH2_FX_OK:
+ return "Successful";
+ case SSH2_FX_NO_SUCH_FILE:
+ return "No such file or directory";
+ case SSH2_FX_PERMISSION_DENIED:
+ return "Permission denied.";
+ case SSH2_FX_BAD_MESSAGE:
+ return &...