summaryrefslogtreecommitdiff
blob: f1d391582643af76b829158edf42fe58bbd60906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/server/pbsd_init.c      (revision 1016)
+++ src/server/pbsd_init.c      (working copy)
@@ -1415,6 +1415,11 @@
   {
   struct stat sb;

+  if (*filename == '.')
+    {
+    return(-1);
+    }
+
   if (stat(filename,&sb) == -1)
     {
     return(errno);