fix: path issue

This commit is contained in:
kuoi 2023-04-16 15:44:34 +08:00
parent f20ecc9d03
commit 8a501c58ed

View file

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