#78 Problems with white spaces in pathnames

closed-fixed
Henry N.
None
5
2007-03-09
2005-11-18
Anonymous
No

Both the cobd block device code and the cofs file
system have problems with white spaces in the location
path.

For example:

cobd2=C:\tmp\some_image.img #works
cobd2=C:\My Files\some_image.img #fails
cofs2=C:\ #works
cofs2=C:\My Files #fails

and also a problem:

cofs2=C:\tmp\ #fails due to the last backslash
cofs2=C: #fails, because of the missing backslash

I think all versions of coLinux are affected, but I'm
hot 100% sure. But I definitely that the 0.7x series
has this problem.

Discussion

  • Henry N.

    Henry N. - 2005-11-21

    Logged In: YES
    user_id=579204

    Thanks,

    that's interesting. All 0.7.x have problem with spaces in
    filenames in config file.

    As workarrount for a while, you can use such name on
    command line args with quotation marks, for sample:

    colinux-daemon.exe kernel=vmlinux cobd2="C:\My
    Files\some_image.img" ...

    XML configuration in 0.6.3 works correct, if you set the
    filename in quotation marks, the standard format.

    The second: Tailing backslash for cofs is on my ToDo list.

    Henry

     
  • Henry N.

    Henry N. - 2005-12-02
    • assigned_to: nobody --> henryn
     
  • Henry N.

    Henry N. - 2005-12-02

    Patch: Handle quotation marks

     
  • Henry N.

    Henry N. - 2005-12-02

    Logged In: YES
    user_id=579204

    Two patches corrects path problems.

    path-quotations.patch:
    * Handle quotation marks in path, need for spaces.
    Used with all params (cobd*, hd*, cofs*, initrd and
    kernel).

    path-canonize.patch:
    * Convert relative path to absolute path with win function
    _fullpath.
    (instand handmade detection and getcwd)
    * Remove tailing backslash from cofs paths, and all others.

    You can test this from my testing binaries:
    http://www.henrynestler.com/colinux/testing/devel-2.6.12-
    hn/20051201/

     
  • Henry N.

    Henry N. - 2005-12-02

    Patch: function _fullpath and tailing backslash

     
  • Henry N.

    Henry N. - 2005-12-02

    Patch: function _fullpath and tailing backslash

     
  • Henry N.

    Henry N. - 2005-12-02
    • status: open --> open-fixed
     
  • Henry N.

    Henry N. - 2007-03-09

    Logged In: YES
    user_id=579204
    Originator: NO

    Paths with whitespace needs quotation marks.
    All currents snapshots works with the initial samples.

     
  • Henry N.

    Henry N. - 2007-03-09
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks