diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-24 13:25:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-24 13:25:57 +0800 |
commit | 3c868173d2f0492d7a905ad7e3fc7881a6e7076f (patch) | |
tree | 763a2831a7157b5e1514efd4e864bf8fa7b14183 | |
parent | 77cc3585bd259055c3521acb667668e3c76f1070 (diff) | |
download | pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar.gz pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar.bz2 pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar.lz pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar.xz pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.tar.zst pttbbs-3c868173d2f0492d7a905ad7e3fc7881a6e7076f.zip |
* fix mutt command line. according to mutt's manpage, -a should be last option.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/mail.c b/pttbbs/mbbsd/mail.c index 5ff1f74f..a47778a4 100644 --- a/pttbbs/mbbsd/mail.c +++ b/pttbbs/mbbsd/mail.c @@ -2123,9 +2123,10 @@ doforward(const char *direct, const fileheader_t * fh, int mode) } while (0); if (mode == 'Z') { + assert(is_validuserid(cuser.userid)); snprintf(fname, sizeof(fname), TAR_PATH " cfz /tmp/home.%s.tgz home/%c/%s; " - MUTT_PATH " -a /tmp/home.%s.tgz -s 'home.%s.tgz' '%s' </dev/null;" + MUTT_PATH " -s 'home.%s.tgz' -a /tmp/home.%s.tgz -- '%s' </dev/null;" "rm /tmp/home.%s.tgz", cuser.userid, cuser.userid[0], cuser.userid, cuser.userid, cuser.userid, address, cuser.userid); |