backport: fix 'isync -w' writing .mbsyncrc to a wrong directory
This commit is contained in:
parent
534ccb326a
commit
b40fb7f281
|
@ -331,8 +331,8 @@ main( int argc, char **argv )
|
||||||
while ((de = readdir( dir ))) {
|
while ((de = readdir( dir ))) {
|
||||||
if (*de->d_name == '.')
|
if (*de->d_name == '.')
|
||||||
continue;
|
continue;
|
||||||
nfsnprintf( path1, sizeof(path1), "%s/%s/cur", xmaildir, de->d_name );
|
nfsnprintf( path2, sizeof(path2), "%s/%s/cur", xmaildir, de->d_name );
|
||||||
if (stat( path1, &st ) || !S_ISDIR( st.st_mode ))
|
if (stat( path2, &st ) || !S_ISDIR( st.st_mode ))
|
||||||
continue;
|
continue;
|
||||||
global.path = de->d_name;
|
global.path = de->d_name;
|
||||||
global.box = (inbox && !strcmp( inbox, global.path )) ?
|
global.box = (inbox && !strcmp( inbox, global.path )) ?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user