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

daemon/ui.c

index af5bd99..467970e 100644 (file)
@@ -1143,9 +1143,9 @@ static void cmd_filtercmd(struct socket *sk, struct uidata *data, int argc, wcha
        sq(sk, 0, L"505", L"System error - Could not fork session", "Internal error", NULL);
        return;
     }
-    filtercmd = findfile(icswcstombs(confgetstr("ui", "filtercmd"), NULL, NULL), NULL, 0);
+    filtercmd = findfile("dc-filtercmd", pwent->pw_dir, 0);
     if(filtercmd == NULL)
-       filtercmd = findfile("dc-filtercmd", pwent->pw_dir, 0);
+       filtercmd = findfile(icswcstombs(confgetstr("ui", "filtercmd"), NULL, NULL), NULL, 0);
     if(filtercmd == NULL)
     {
        flog(LOG_WARNING, "could not find filtercmd executable for user %s", pwent->pw_name);