Fix build farm, older compilers won't let you declare variables
authorJim McDonough <jmcd@samba.org>
Thu, 4 Mar 2004 16:24:13 +0000 (16:24 +0000)
committerJim McDonough <jmcd@samba.org>
Thu, 4 Mar 2004 16:24:13 +0000 (16:24 +0000)
right in the middle of the code.

I just love catching jra on stuff like this, after all the crap
I've done. :-)
(This used to be commit dc7dc5175847243d821dd33c1678af1b785dfaf7)

source3/smbd/reply.c

index 051aaafb456b6f868163fde6009eaee47fb14437..c0d5234f472e721f7073b3add26606877ffe0001 100644 (file)
@@ -1544,8 +1544,8 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name)
 
                        while ((dname = ReadDirName(dirptr))) {
                                pstring fname;
-                               pstrcpy(fname,dname);
                                BOOL sys_direntry = False;
+                               pstrcpy(fname,dname);
 
                                /* Quick check for "." and ".." */
                                if (fname[0] == '.') {