dtsession/SmSave: use absolute path to rm in system()
This commit is contained in:
@@ -558,7 +558,7 @@ PruneSessionDirectory ()
|
|||||||
if (((stat (saveDir, &buf)) == 0) &&
|
if (((stat (saveDir, &buf)) == 0) &&
|
||||||
S_ISDIR (buf.st_mode)) {
|
S_ISDIR (buf.st_mode)) {
|
||||||
|
|
||||||
sprintf (clientDB, "rm -rf %s", saveDir);
|
sprintf (clientDB, "/bin/rm -rf %s", saveDir);
|
||||||
SystemCmd (clientDB);
|
SystemCmd (clientDB);
|
||||||
|
|
||||||
sprintf (oldestDir, "%s/%s", smGD.savePath,
|
sprintf (oldestDir, "%s/%s", smGD.savePath,
|
||||||
|
|||||||
Reference in New Issue
Block a user