All files containing ../ should be considerd suspicious.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3824 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-07 19:51:54 +00:00
parent ee77152a4d
commit 3cd6c35b7b

View File

@@ -664,7 +664,7 @@ getit(int argc, char **argv, int restartit, char *mode)
static int
suspicious_filename(const char *fn)
{
return strncmp(fn, "../", 3) == 0 || *fn == '/';
return strstr(fn, "../") != NULL || *fn == '/';
}
/*