fix: path issue

This commit is contained in:
kuoi 2023-04-16 15:44:34 +08:00
parent f20ecc9d03
commit 8a501c58ed
1 changed files with 2 additions and 2 deletions

View File

@ -360,8 +360,8 @@ int fl_make_list()
getcwd(dirname, GBUFSIZ);
sprintf(tmpcmd, "cd %s;ls -F > /usr/tmp/.svlffil%d", dirname, pid);
sprintf(tmpname, "/usr/tmp/.svlffil%d", pid);
sprintf(tmpcmd, "cd %s;ls -F > /tmp/.svlffil%d", dirname, pid);
sprintf(tmpname, "/tmp/.svlffil%d", pid);
system(tmpcmd);
dirp = fopen(tmpname, "r");
if (dirp == NULL) /* just a check to make sure */