Oops, don't edit a file when your checkin hasn't finished
authorJ.T. Conklin <jtc@acorntoolworks.com>
Mon, 31 Jul 1995 22:50:21 +0000 (22:50 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Mon, 31 Jul 1995 22:50:21 +0000 (22:50 +0000)
gdb/source.c

index b2c4a5628c0afe7d912858c170b77e6f1d0931e8..7b7aead22e1581f7e14d14e01813d2010b8ab0ec 100644 (file)
@@ -364,7 +364,7 @@ mod_path (dirname, which_path)
            fprintf_unfiltered (gdb_stderr, "Warning: ");
            print_sys_errmsg (name, save_errno);
          }
-       else if (!S_ISDIR(st.st_mode))
+       else if ((st.st_mode & S_IFMT) != S_IFDIR)
          warning ("%s is not a directory.", name);
       }