Try dc-filter from home dir first.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Thu, 19 Apr 2007 11:54:12 +0000 (11:54 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Thu, 19 Apr 2007 11:54:12 +0000 (11:54 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@953 959494ce-11ee-0310-bf91-de5d638817bd

daemon/transfer.c

index 99843ae..300a33d 100644 (file)
@@ -627,9 +627,9 @@ int forkfilter(struct transfer *transfer)
        errno = EACCES;
        return(-1);
     }
-    filtername = findfile(icswcstombs(confgetstr("transfer", "filter"), NULL, NULL), NULL, 0);
+    filtername = findfile("dc-filter", pwent->pw_dir, 0);
     if(filtername == NULL)
-       filtername = findfile("dc-filter", pwent->pw_dir, 0);
+       filtername = findfile(icswcstombs(confgetstr("transfer", "filter"), NULL, NULL), NULL, 0);
     if(filtername == NULL)
     {
        flog(LOG_WARNING, "could not find filter for user %s", pwent->pw_name);