Message ID | 1471485975-1775-2-git-send-email-nhofmeyr@sysmocom.de |
---|---|
State | New |
Headers | show |
diff --git a/gtp/gtp.c b/gtp/gtp.c index 34e1dc6..702e502 100644 --- a/gtp/gtp.c +++ b/gtp/gtp.c @@ -651,7 +651,7 @@ static void log_restart(struct gsn_t *gsn) /* guarantee nul term, strncpy might omit if too long */ filename[NAMESIZE - 1] = 0; strncpy(filename, gsn->statedir, NAMESIZE - 1); - strncat(filename, RESTART_FILE, NAMESIZE - 1 - strlen(filename)); + strncat(filename, "/" RESTART_FILE, NAMESIZE - 1 - strlen(filename)); i = umask(022);