From: Alan T. DeKok Date: Mon, 9 May 2011 17:37:46 +0000 (+0200) Subject: Fix typo X-Git-Tag: release_2_1_11~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27872bba30dde06f7203372e21fa2cca0da4bc86;p=thirdparty%2Ffreeradius-server.git Fix typo If we're making a directory, make sure it's from the '/', and not from the whole filename. --- diff --git a/src/modules/rlm_detail/rlm_detail.c b/src/modules/rlm_detail/rlm_detail.c index 8ebd5279c15..fdab2e37599 100644 --- a/src/modules/rlm_detail/rlm_detail.c +++ b/src/modules/rlm_detail/rlm_detail.c @@ -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