diff options
Diffstat (limited to 'usr.sbin/nsd/dbcreate.c')
-rw-r--r-- | usr.sbin/nsd/dbcreate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/nsd/dbcreate.c b/usr.sbin/nsd/dbcreate.c index 1d91225f092..b80d24083f1 100644 --- a/usr.sbin/nsd/dbcreate.c +++ b/usr.sbin/nsd/dbcreate.c @@ -296,6 +296,7 @@ create_dirs(const char* path) if(errno != EEXIST) { log_msg(LOG_ERR, "create dir %s: %s", dir, strerror(errno)); + *p = PATHSEP; /* restore input string */ return 0; } /* it already exists, OK, continue */ |