Red Hat Bugzilla – Bug 171591
Segmentation fault if destination path contains a special character
Last modified: 2007-11-30 17:07:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Description of problem:
The utility produces a segmentation fault when the destination path contains a special character
dos2unix -n example.cpp /cm/vobs/examplevob/example_prj/example.cpp
dos2unix -n example.cpp /cm/vobs/examplevob/example-prj/example.cpp
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create example.cpp in dos format under /.
2. Create a directory with a special character in the name (ex: /ex_ample, /ex-ample).
3. Under /, run "dos2unix -n example.cpp /ex_ample/example.cpp"
Actual Results: Segmentation fault
Expected Results: Produce a UNIX format example.cpp in the destination path.
Reproduction is a simplified example. Bug is not always reproducable as
originally noted, but always happends with the same file in a build script.
It occurs several files have already be run through dos2unix and placed in a
destination directory like \example_dir. Issue appears to have more to do
with NFS / ClearCase environment.