r21734: Fix bug #4369. Patch from David Leonard <dleonard@vintela.com>.
authorJeremy Allison <jra@samba.org>
Wed, 7 Mar 2007 02:27:54 +0000 (02:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:27 +0000 (12:18 -0500)
Jeremy.

source/client/client.c

index 605beb2e06c93708718659286f47c33ac5e177fd..5a1a812fe984714868934ab28715ee4e1e9c1940 100644 (file)
@@ -714,6 +714,11 @@ static int cmd_dir(void)
                pstrcat(mask,"*");
        }
 
+       if (showacls) {
+               /* cwd is only used if showacls is on */
+               pstrcpy(cwd, cur_dir);
+       }
+
        do_list(mask, attribute, display_finfo, recurse, True);
 
        rc = do_dskattr();