Return 0 DFS links instead of -1 when dfs support is not enabled.
authorTim Potter <tpot@samba.org>
Fri, 5 Sep 2003 00:55:44 +0000 (00:55 +0000)
committerTim Potter <tpot@samba.org>
Fri, 5 Sep 2003 00:55:44 +0000 (00:55 +0000)
Possible fix for bug 403.
(This used to be commit 6babab93ff845c18f7c0d73e6a016764e31f4fac)

source3/msdfs/msdfs.c

index 57408b9106aacfe47104b6b1c885d3efd51f1920..dc326f2eee87981bd10416152874f81aebf1f113 100644 (file)
@@ -917,7 +917,7 @@ int enum_msdfs_links(struct junction_map* jn)
        int jn_count = 0;
 
        if(!lp_host_msdfs())
-               return -1;
+               return 0;
 
        for(i=0;*lp_servicename(i);i++) {
                if(lp_msdfs_root(i))