]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix typo
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 May 2011 17:37:46 +0000 (19:37 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 May 2011 17:37:46 +0000 (19:37 +0200)
If we're making a directory, make sure it's from the '/',
and not from the whole filename.

src/modules/rlm_detail/rlm_detail.c

index 8ebd5279c15fe3c22e7abaa4edb786447ae34d1e..fdab2e3759936bd5209c98876bc26d0c6745e127 100644 (file)
@@ -291,6 +291,8 @@ static int do_detail(void *instance, REQUEST *request, RADIUS_PACKET *packet,
         *      doesn't exist, so we must create it the directories..
         */
        if (p) {
+               *p = '\0';
+
                /*
                 *      Always try to create the directory.  If it
                 *      exists, rad_mkdir() will check via stat(), and