Menu

#322 CreateDirectory sets error flag with paths containing "\\"

2.0 Series
closed-fixed
Scripting (211)
6
2005-04-08
2005-02-09
CharlesB05
No

If CreateDirectory is called with a path that contains
two consecutive backslashes, the directory is created,
without error message, but the error flag is set.

IMHO there's no reason the error flag is set because
such a path is valid

Discussion

  • CharlesB05

    CharlesB05 - 2005-02-09

    Sample script to demonstrate the bug

     
  • CharlesB05

    CharlesB05 - 2005-03-24

    Logged In: YES
    user_id=1213997

    The bug is still here in NSIS 2.06... Could you fix it?

     
  • CharlesB05

    CharlesB05 - 2005-04-05

    Logged In: YES
    user_id=1213997

    Just realized that the bug also happens with command "File".

     
  • CharlesB05

    CharlesB05 - 2005-04-05
    • priority: 5 --> 6
     
  • Amir Szekely

    Amir Szekely - 2005-04-08
    • assigned_to: nobody --> kichik
     
  • Amir Szekely

    Amir Szekely - 2005-04-08

    Logged In: YES
    user_id=584402

    How exactly does it happen with File?

     
  • Amir Szekely

    Amir Szekely - 2005-04-08
    • status: open --> open-fixed
     
  • Amir Szekely

    Amir Szekely - 2005-04-08

    Logged In: YES
    user_id=584402

    Fixed the problem with CreateDirectory. Still can't find out
    what can happen with File that and multiple backslashes.

     
  • CharlesB05

    CharlesB05 - 2005-04-08
    • status: open-fixed --> open
     
  • CharlesB05

    CharlesB05 - 2005-04-08

    Logged In: YES
    user_id=1213997

    My error, this is not with File, but with SetOutPath.
    Attached the script that demonstrates it : SetOutPath with a
    "\\ path" sets the error flag, and a then a File command
    extracts the file without problem.

     
  • CharlesB05

    CharlesB05 - 2005-04-08

    Demonstrates the bug with SetOutPath

     
  • Amir Szekely

    Amir Szekely - 2005-04-08

    Logged In: YES
    user_id=584402

    SetOutPath uses the same code as CreateDirectory so it
    should be fixed now.

     
  • Amir Szekely

    Amir Szekely - 2005-04-08
    • status: open --> closed-fixed
     

Log in to post a comment.