1 Description: Hurd build without PATH_MAX; currently broken
4 Author: Don Armstrong <don@debian.org>
5 --- a/flower/file-name.cc
6 +++ b/flower/file-name.cc
9 get_working_directory ()
12 + char *cwd = get_current_dir_name();
18 // getcwd returns NULL upon a failure, contents of cwd would be undefined!
19 return string (getcwd (cwd, PATH_MAX));
23 /* Join components to full file_name. */
24 --- a/flower/test-file-path.cc
25 +++ b/flower/test-file-path.cc
31 +get_working_directory ()
34 + char *cwd = get_current_dir_name();
40 + // getcwd returns NULL upon a failure, contents of cwd would be undefined!
41 + return string (getcwd (cwd, PATH_MAX));
45 TEST (File_path, Find)
47 char const *extensions[] = {"ly", "", 0};
50 - if (!getcwd (cwd, PATH_MAX))
51 + if (get_working_directory().empty())
53 cerr << "Could not get current work directory\n";