1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtsearchpath: fix a crash when running dtappgather.

This commit is contained in:
Liang Chang 2021-11-21 15:56:58 +08:00
parent cf7e51ccb5
commit dd17c6a394

View file

@ -165,12 +165,12 @@ AppManagerDirectory::AppManagerDirectory
dir.replace("/dt","");
if (!user->OS()->isDirectory(dir)) { // does /var exist?
user->OS()->MakeDirectory(dir,0755);
user->OS()->changeOwnerGroup(dir,"root","other");
user->OS()->changeOwnerGroup(dir,"root","bin");
user->OS()->changePermissions(dir,0755);
}
dir += "/dt";
user->OS()->MakeDirectory(dir,0755);
user->OS()->changeOwnerGroup(dir,"root","other");
user->OS()->changeOwnerGroup(dir,"root","bin");
user->OS()->changePermissions(dir,0755);
}
dir += "/appconfig";
@ -192,7 +192,7 @@ AppManagerDirectory::AppManagerDirectory
CString tmp("/var/dt/tmp/");
if (!user->OS()->isDirectory(tmp)) { // does tmp exist?
user->OS()->MakeDirectory(tmp,0755);
user->OS()->changeOwnerGroup(tmp,"root","other");
user->OS()->changeOwnerGroup(tmp,"root","bin");
user->OS()->changePermissions(tmp,0755);
}