add comment
authorJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 10:48:41 +0000 (10:48 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 10:48:41 +0000 (10:48 +0000)
m4/getcwd-path-max.m4

index 3430888..f8a9a2b 100644 (file)
@@ -88,7 +88,11 @@ main ()
          break;
        }
       if ((c = getcwd (buf, PATH_MAX)) == NULL)
-        break;
+        {
+         /* This allows any failure to indicate there is no bug.
+            FIXME: check errno?  */
+         break;
+       }
       if ((len = strlen (c)) != cwd_len)
        {
          fail = 1;