]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Remember / after listdir
authormmj <none@none>
Thu, 3 Feb 2005 15:47:51 +0000 (02:47 +1100)
committermmj <none@none>
Thu, 3 Feb 2005 15:47:51 +0000 (02:47 +1100)
src/log_oper.c

index 95244f12136db1203da43dac0fbf1fc7ac40a96c..0de1e5cf0498c420bbea8ba8051a2eed73b5f449 100644 (file)
@@ -49,7 +49,7 @@ int log_oper(const char *prefix, const char *basename, const char *fmt, ...)
        va_list ap;
        size_t i;
 
-       logfilename = concatstr(2, prefix, basename);
+       logfilename = concatstr(3, prefix, "/", basename);
        statres = lstat(logfilename, &st);
        if(statres < 0 && errno != ENOENT) {
                log_error(LOG_ARGS, "Could not stat logfile %s", logfilename);