• Alexander Nozdrin's avatar
    Backporting of Bug#40128 from 6.0 to next-mr. · be8e3974
    Alexander Nozdrin authored
    Original revision in 6.0:
    ------------------------------------------------------------
    revno: 2599.108.1
    committer: Alexander Nozdrin <alik@sun.com>
    branch nick: 6.0-rpl-bug40128
    timestamp: Wed 2009-01-21 15:33:42 +0300
    message:
      Fix for Bug#40128: drop-no_root fails under windows in 6.0-rpl.
      
      The problem was that directories with no permission (000) files
      are deleted differently on UNIX and on Windows.
      
      On UNIX, 000-permission file is deleted perfectly, but other files
      are left in the directory.
      
      On Windows, 000-permission file is not deleted, but other files
      are deleted.
      
      Also, the fix needed a change in mysqltest.c: 'chmod' directive
      should return a positive error code (in order to be handled).
      It's decided to return a constant '1' for all error codes
      just to be OS-independent.
    ------------------------------------------------------------
    be8e3974
drop-no_root.result 454 Bytes