aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-07-31 22:50:21 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-07-31 22:50:21 +0000
commit19f5d8f1645148ab7bd72ce76fbe93c97b8c1505 (patch)
tree788a36c4a06e0712f902a71e4f1352f3293c40f4 /gdb
parent1a49497348d02ffd9ba0eab6881bb3353223a068 (diff)
downloadgdb-19f5d8f1645148ab7bd72ce76fbe93c97b8c1505.zip
gdb-19f5d8f1645148ab7bd72ce76fbe93c97b8c1505.tar.gz
gdb-19f5d8f1645148ab7bd72ce76fbe93c97b8c1505.tar.bz2
Oops, don't edit a file when your checkin hasn't finished
Diffstat (limited to 'gdb')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index b2c4a56..7b7aead 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);
}