redjack/libcork — pull request #48 by dcreager (2013-04-09 20:08:42+00:00)
Title: cork_path_dirname doesn't work on root directory

The cork_path_dirname function isn't returning the right results when applied to the root directory (`"/"`) or its immediate subdirectories (e.g., `"/usr"`). You end up getting an empty path (`""`), when you should get the root directory (`"/"`). (Note that it's customary to treat the root directory specially: `dirname("/") == "/"`.)