View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014966CMakeCMakepublic2014-06-09 16:042015-01-05 08:38
ReporterChristopher Yeleighton 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformGNU/LinuxOSopenSUSEOS Version13.1
Product VersionCMake 2.8.11 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0014966: cmake succeeds evaluating a script that is a directory
Descriptioncmake "succeeds" evaluating a "script" that is a directory.
Steps To Reproduce{ cmake -P . && echo "$?"; }
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036139)
David Cole (manager)
2014-06-09 16:07

Does not reproduce on Windows for me, using CMake 3.0.0-rc6:

    N:\...> cmake -P .
    CMake Error: cmListFileCache: error can not open file N:/...
    CMake Error: Error processing file: .

    N:\...> echo %ERRORLEVEL%
    1

    N:\...> cmake --version
    cmake version 3.0.0-rc6
(0036140)
David Cole (manager)
2014-06-09 16:07

Mayber try CMake 3.0.0-rc6 and see if it's fixed already on Linux, too...
(0036141)
Brad King (manager)
2014-06-09 16:12

I can reproduce it with 3.0.0-rc6 on Linux.

We are just using fopen directly:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmListFileLexer.in.l;hb=v3.0.0-rc6#l491 [^]

without checking the file type first. Perhaps that fails on a directory with the MS C runtime but not the GNU C runtime library.
(0036144)
Brad King (manager)
2014-06-09 16:25

This should fix it:

 cmake: Do not open directories as scripts
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b1c113d9 [^]
(0037561)
Robert Maynard (manager)
2015-01-05 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-06-09 16:04 Christopher Yeleighton New Issue
2014-06-09 16:07 David Cole Note Added: 0036139
2014-06-09 16:07 David Cole Note Added: 0036140
2014-06-09 16:12 Brad King Note Added: 0036141
2014-06-09 16:25 Brad King Note Added: 0036144
2014-06-10 08:46 Brad King Assigned To => Brad King
2014-06-10 08:46 Brad King Status new => resolved
2014-06-10 08:46 Brad King Resolution open => fixed
2014-06-10 08:46 Brad King Fixed in Version => CMake 3.1
2014-06-10 08:46 Brad King Target Version => CMake 3.1
2015-01-05 08:38 Robert Maynard Note Added: 0037561
2015-01-05 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team