]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/fmtmsg.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / FreeBSD / fmtmsg.c
index ada1c9dda8628c180c116ed59b5eab6e2934eebc..44ecc2f22ffcd4f94b9a8feb16a3cb876ff4880b 100644 (file)
@@ -122,14 +122,14 @@ def:
 
                        XXX this is a *huge* kludge to pass the SuSv3 tests,
                          I don't think of it as cheating because they are
-                         looking in the wrong place (/realdev/console) to do
+                         looking in the wrong place (/var/log/console) to do
                          their testing, but they can't look in the "right"
                          place for various reasons */
                        char *cpath = "/dev/console";
                        struct stat sb;
-                       int rc = stat("/realdev/console", &sb);
+                       int rc = stat("/var/log/console", &sb);
                        if (rc == 0 && (sb.st_mode & S_IFDIR)) {
-                           cpath = "/realdev/console";
+                           cpath = "/var/log/console";
                        }
                        /* XXX thus ends the kludge - changes after
                          this point may be safely integrated */