]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
authorhjl <hjl>
Mon, 27 Nov 2000 23:45:03 +0000 (23:45 +0000)
committerhjl <hjl>
Mon, 27 Nov 2000 23:45:03 +0000 (23:45 +0000)
* utils/mountd/auth.c (auth_authenticate): Log the bad path
warning.

ChangeLog
utils/mountd/auth.c

index 87c81d2e7f1ab3421e4b5b6054348abf96fce1b0..31db7560436562a9f38307fb214ffd53ec4e3c71 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
+
+       * utils/mountd/auth.c (auth_authenticate): Log the bad path
+       warning.
+
 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
 
         * support/nfs/exports.c (getexportent):  Check for host name without option,
index 2b4051e1676a25f776ab1a19d28f14e4ff7c267e..6b6b7d74cf4fb1afe788b5055e303dde627f54a8 100644 (file)
@@ -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';