X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ftpd.c;h=d3587815bd790c595ddd9d107f10601bd90612f2;hb=d0ddb9f01ad498b50fbd2ce4d265936a632184d3;hp=2a01996e9004b167393baf4b9d121580018ddc4f;hpb=14493d6b359df9a7c46fcafdd4208b0987bbba29;p=betaftpd diff --git a/ftpd.c b/ftpd.c index 2a01996..d358781 100644 --- a/ftpd.c +++ b/ftpd.c @@ -847,11 +847,11 @@ void write_xferlog(struct ftran *f) if (xferlog == NULL) return; - strftime(temp, 256, "%a %b %d %H:%M:%S %Y", t); + strftime(temp, 256, "%a %b %d %H:%M:%S %Y", t); #if WANT_UPLOAD - fprintf(xferlog, "%s %u %s %lu %s b _ %c a %s ftp 0 * \n", + fprintf(xferlog, "%s %u %s %lu %s b _ %c %c %s ftp 0 *\n", #else - fprintf(xferlog, "%s %u %s %lu %s b _ o a %s ftp 0 *\n", + fprintf(xferlog, "%s %u %s %lu %s b _ o %c %s ftp 0 *\n", #endif temp, (int)(difftime(now, f->tran_start)), inet_ntoa(f->sin.sin_addr), f->size, @@ -859,7 +859,7 @@ void write_xferlog(struct ftran *f) #if WANT_UPLOAD (f->upload) ? 'i' : 'o', #endif - f->owner->username); + (f->owner->auth == 4) ? 'r' : 'a', f->owner->username); fflush(xferlog); #if 0