]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: When using -u parameter, chdir() to user's home.
authorTimo Sirainen <tss@iki.fi>
Mon, 26 Jul 2010 18:23:59 +0000 (19:23 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 26 Jul 2010 18:23:59 +0000 (19:23 +0100)
src/dsync/dsync.c

index a33e676998d4ccb467258da710dfd972161ca616..12957690e13e5fbab695f5164ee0b6261dfa79b5 100644 (file)
@@ -194,6 +194,7 @@ int main(int argc, char *argv[])
                case 'u':
                        username = optarg;
                        ssflags |= MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP;
+                       ssflags &= ~MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR;
                        break;
                case 'v':
                        brain_flags |= DSYNC_BRAIN_FLAG_VERBOSE;