diff options
Diffstat (limited to 'qarshd.c')
-rw-r--r-- | qarshd.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -62,10 +62,6 @@ int sendfd = -1; off_t recvsize = 0; off_t received = 0; -/* A mini cache for rstat so we can check it in pushfile */ -char *saved_path = NULL; -struct stat saved_stat; - void lprintf(int priority, const char *format, ...) { @@ -228,14 +224,6 @@ prepare_sendfile(struct qa_packet *qp) return NULL; } -void -save_stat(const char *path, const struct stat *sb) -{ - if (saved_path) free(saved_path); - saved_path = strdup(path); - memcpy(&saved_stat, sb, sizeof saved_stat); -} - struct qa_packet * rstat(const char *path) { @@ -247,7 +235,6 @@ rstat(const char *path) } else { rp = make_qp_rstat(path, &sb); } - save_stat(path, &sb); return rp; } |