From 19f5d8f1645148ab7bd72ce76fbe93c97b8c1505 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Mon, 31 Jul 1995 22:50:21 +0000 Subject: [PATCH] Oops, don't edit a file when your checkin hasn't finished --- gdb/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/source.c b/gdb/source.c index b2c4a5628c0..7b7aead22e1 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -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); } -- 2.30.2