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:
parent
cf7e51ccb5
commit
dd17c6a394
1 changed files with 3 additions and 3 deletions
|
@ -165,12 +165,12 @@ AppManagerDirectory::AppManagerDirectory
|
||||||
dir.replace("/dt","");
|
dir.replace("/dt","");
|
||||||
if (!user->OS()->isDirectory(dir)) { // does /var exist?
|
if (!user->OS()->isDirectory(dir)) { // does /var exist?
|
||||||
user->OS()->MakeDirectory(dir,0755);
|
user->OS()->MakeDirectory(dir,0755);
|
||||||
user->OS()->changeOwnerGroup(dir,"root","other");
|
user->OS()->changeOwnerGroup(dir,"root","bin");
|
||||||
user->OS()->changePermissions(dir,0755);
|
user->OS()->changePermissions(dir,0755);
|
||||||
}
|
}
|
||||||
dir += "/dt";
|
dir += "/dt";
|
||||||
user->OS()->MakeDirectory(dir,0755);
|
user->OS()->MakeDirectory(dir,0755);
|
||||||
user->OS()->changeOwnerGroup(dir,"root","other");
|
user->OS()->changeOwnerGroup(dir,"root","bin");
|
||||||
user->OS()->changePermissions(dir,0755);
|
user->OS()->changePermissions(dir,0755);
|
||||||
}
|
}
|
||||||
dir += "/appconfig";
|
dir += "/appconfig";
|
||||||
|
@ -192,7 +192,7 @@ AppManagerDirectory::AppManagerDirectory
|
||||||
CString tmp("/var/dt/tmp/");
|
CString tmp("/var/dt/tmp/");
|
||||||
if (!user->OS()->isDirectory(tmp)) { // does tmp exist?
|
if (!user->OS()->isDirectory(tmp)) { // does tmp exist?
|
||||||
user->OS()->MakeDirectory(tmp,0755);
|
user->OS()->MakeDirectory(tmp,0755);
|
||||||
user->OS()->changeOwnerGroup(tmp,"root","other");
|
user->OS()->changeOwnerGroup(tmp,"root","bin");
|
||||||
user->OS()->changePermissions(tmp,0755);
|
user->OS()->changePermissions(tmp,0755);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue