aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-09 10:37:37 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-03-09 10:37:37 +0200
commitfedbf1d7be7a92ae10bd2e2c05f0bf5c10b933ce (patch)
tree12c32902d02ea8e3905f8f32dc5ecb825d92abaa
parente473ab7df422543a458a1226b1dd8e5febea2c35 (diff)
downloadmailfromd-fedbf1d7be7a92ae10bd2e2c05f0bf5c10b933ce.tar.gz
mailfromd-fedbf1d7be7a92ae10bd2e2c05f0bf5c10b933ce.tar.bz2
Bugfix.
* src/lex.l (lex_new_source): Fail if the fail is not a regular one.
-rw-r--r--src/lex.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lex.l b/src/lex.l
index a069bbbb..7a1639d0 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -192,6 +192,9 @@ lex_new_source(const char *name, int flag)
parse_error(_("cannot open `%s': %s"),
name, mu_strerror(errno));
return EX_NOINPUT;
+ } else if (!S_ISREG(st.st_mode)) {
+ parse_error(_("`%s' is not a regular file"), name);
+ return EX_NOINPUT;
}
id.device = st.st_dev;

Return to:

Send suggestions and report system problems to the System administrator.