diff options
author | hjl <hjl> | 2000-11-27 23:45:03 +0000 |
---|---|---|
committer | hjl <hjl> | 2000-11-27 23:45:03 +0000 |
commit | 75cbc5abeb4b1d39abf298be217783c2b0889ae5 (patch) | |
tree | e940fc1d6b9924a293691c834ed295221ed62a1b /utils/mountd/auth.c | |
parent | 2d6738720f11cee8d300294c273e3bda443d1926 (diff) | |
download | nfs-utils-75cbc5abeb4b1d39abf298be217783c2b0889ae5.tar.gz nfs-utils-75cbc5abeb4b1d39abf298be217783c2b0889ae5.tar.xz nfs-utils-75cbc5abeb4b1d39abf298be217783c2b0889ae5.zip |
2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
* utils/mountd/auth.c (auth_authenticate): Log the bad path
warning.
Diffstat (limited to 'utils/mountd/auth.c')
-rw-r--r-- | utils/mountd/auth.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 2b4051e..6b6b7d7 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -158,7 +158,11 @@ auth_authenticate(char *what, struct sockaddr_in *caller, char *path) struct in_addr addr = caller->sin_addr; enum auth_error error; - if (path [0] != '/') return exp; + if (path [0] != '/') { + xlog(L_WARNING, "bad path in %s request from %s: \"%s\"", + what, inet_ntoa(addr), path); + return exp; + } strncpy(epath, path, sizeof (epath) - 1); epath[sizeof (epath) - 1] = '\0'; |