fix: path issue
This commit is contained in:
parent
f20ecc9d03
commit
8a501c58ed
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue