isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit a41ea8f9f1463daef017d9d47ee59740a7eb1cb4
parent c1c7cb6d8e9c852a43387f18e22af44b2c0c6f0b
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 29 Jan 2006 18:40:27 +0000

whoops - 'isync -w' would write .mbsyncrc to a wrong directory

Diffstat:
Msrc/compat/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compat/main.c b/src/compat/main.c @@ -331,8 +331,8 @@ main( int argc, char **argv ) while ((de = readdir( dir ))) { if (*de->d_name == '.') continue; - nfsnprintf( path1, sizeof(path1), "%s/%s/cur", xmaildir, de->d_name ); - if (stat( path1, &st ) || !S_ISDIR( st.st_mode )) + nfsnprintf( path2, sizeof(path2), "%s/%s/cur", xmaildir, de->d_name ); + if (stat( path2, &st ) || !S_ISDIR( st.st_mode )) continue; global.path = de->d_name; global.box = (inbox && !strcmp( inbox, global.path )) ?