From 636c03fece00909f279a17ce9e20767eedc4100a Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 26 Nov 2004 20:41:45 +0000 Subject: [PATCH] Checked file information header --- mbsebbs/zmsend.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mbsebbs/zmsend.c b/mbsebbs/zmsend.c index 7ba731f5..5977cc3c 100644 --- a/mbsebbs/zmsend.c +++ b/mbsebbs/zmsend.c @@ -213,11 +213,7 @@ static int sendzfile(char *rn) Syslog('+', "Zmodem: size %lu bytes, dated %s", (unsigned long)st.st_size, rfcdate(st.st_mtime)); gettimeofday(&starttime, &tz); - /* - * Filemode is fixed to 100644, we don't care how it is stored in the filebase. - */ - sprintf(txbuf,"%s %lu %lo 100644 0 0 0", rn,(unsigned long)st.st_size, st.st_mtime+(st.st_mtime%2)); - Syslog('z', "txbuf \"%s\"", txbuf); + sprintf(txbuf,"%s %lu %lo %o 0 0 0", rn,(unsigned long)st.st_size, st.st_mtime+(st.st_mtime%2), st.st_mode); bufl = strlen(txbuf); *(strchr(txbuf,' ')) = '\0'; /*hope no blanks in filename*/