r24485: Even in the failure case unix_convert must pass the already converted
authorVolker Lendecke <vlendec@samba.org>
Thu, 16 Aug 2007 12:15:52 +0000 (12:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:51 +0000 (12:29 -0500)
part of the string to the caller.

source/smbd/filename.c

index d5c22e81c368454b4b9a6a17f34ae419eee279ec..6ab179a3163ab5f3282aea7c7f2094042d7e8ac5 100644 (file)
@@ -603,8 +603,8 @@ NTSTATUS unix_convert(connection_struct *conn,
 
  done:
        result = NT_STATUS_OK;
-       pstrcpy(orig_path, name);
  fail:
+       pstrcpy(orig_path, name);
        SAFE_FREE(name);
        SAFE_FREE(dirpath);
        return result;