diff options
author | Julien Dessaux | 2018-08-26 18:54:19 +0200 |
---|---|---|
committer | Julien Dessaux | 2018-11-02 18:32:59 +0100 |
commit | fecf526ed334c8b987b37a3702e85a08bb7a9e68 (patch) | |
tree | b70f7ba78eb409f12a63c5ac69ef0ba97cf7b269 /src/recording.c | |
parent | Added session recording with https://github.com/kilobyte/termrec (diff) | |
download | bastion-fecf526ed334c8b987b37a3702e85a08bb7a9e68.tar.gz bastion-fecf526ed334c8b987b37a3702e85a08bb7a9e68.tar.bz2 bastion-fecf526ed334c8b987b37a3702e85a08bb7a9e68.zip |
Began implementing configuration fetching from an sshportal mysql database
Diffstat (limited to '')
-rw-r--r-- | src/recording.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recording.c b/src/recording.c index 6c0cdab..a001607 100644 --- a/src/recording.c +++ b/src/recording.c @@ -23,7 +23,7 @@ void clean_recorder(void) recorder_handle = NULL; } -static char * // this char * is to be freed from the calling code +static char * // returns NULL if error, this char * is to be freed from the calling code make_filename(void) { char * format = LOG_FILENAME_FORMAT; @@ -49,7 +49,7 @@ make_filename(void) strcpy(filename + fname_pos, hostname); fname_pos += len; } else if (format[format_pos] == 'u') { - const char * username = state_get_username(); + const char * username = state_get_bastion_username(); size_t len = strlen(username); strcpy(filename + fname_pos, username); fname_pos += len; |