Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
790e71fa
Commit
790e71fa
authored
Jun 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change permissions on database, and some other bugfixes
parent
636a1f2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
wb/lib/wb/src/wb_ldh.cpp
wb/lib/wb/src/wb_ldh.cpp
+24
-3
No files found.
wb/lib/wb/src/wb_ldh.cpp
View file @
790e71fa
...
@@ -41,6 +41,7 @@ This module contains the API-routines to the Local Data Handler, LDH. */
...
@@ -41,6 +41,7 @@ This module contains the API-routines to the Local Data Handler, LDH. */
#include "wb_vrepmem.h"
#include "wb_vrepmem.h"
#include "wb_vrepwbl.h"
#include "wb_vrepwbl.h"
#include "wb_vrepdbs.h"
#include "wb_vrepdbs.h"
#include "wb_merep.h"
#include "wb_db.h"
#include "wb_db.h"
#include "wb_print_wbl.h"
#include "wb_print_wbl.h"
#include "pwr_baseclasses.h"
#include "pwr_baseclasses.h"
...
@@ -250,6 +251,7 @@ ldh_ChangeObjectName(ldh_tSession session, pwr_tOid oid, char *name)
...
@@ -250,6 +251,7 @@ ldh_ChangeObjectName(ldh_tSession session, pwr_tOid oid, char *name)
try
{
try
{
wb_name
n
(
name
);
wb_name
n
(
name
);
if
(
!
n
)
return
n
.
sts
();
wb_object
o
=
sp
->
object
(
oid
);
wb_object
o
=
sp
->
object
(
oid
);
if
(
!
o
)
return
o
.
sts
();
if
(
!
o
)
return
o
.
sts
();
...
@@ -784,8 +786,13 @@ ldh_GetReferenceInfo(ldh_tSession session, pwr_tOid oid, ldh_sRefInfo *rip)
...
@@ -784,8 +786,13 @@ ldh_GetReferenceInfo(ldh_tSession session, pwr_tOid oid, ldh_sRefInfo *rip)
wb_object
o
=
sp
->
object
(
oid
);
wb_object
o
=
sp
->
object
(
oid
);
if
(
!
o
)
return
o
.
sts
();
if
(
!
o
)
return
o
.
sts
();
o
.
refinfo
(
rip
);
try
{
return
o
.
sts
();
sp
->
refinfo
(
o
,
rip
);
}
catch
(
wb_error
&
e
)
{
return
e
.
sts
();
}
return
LDH__SUCCESS
;
}
}
/* Get first object in root list. */
/* Get first object in root list. */
...
@@ -1330,6 +1337,8 @@ ldh_SetObjectName(ldh_tSession session, pwr_tOid oid, char *name)
...
@@ -1330,6 +1337,8 @@ ldh_SetObjectName(ldh_tSession session, pwr_tOid oid, char *name)
try
{
try
{
wb_name
n
(
name
);
wb_name
n
(
name
);
if
(
!
n
)
return
n
.
sts
();
sp
->
renameObject
(
o
,
n
);
sp
->
renameObject
(
o
,
n
);
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
...
@@ -1572,6 +1581,12 @@ ldh_WbLoad( ldh_tSession session, char *loadfile)
...
@@ -1572,6 +1581,12 @@ ldh_WbLoad( ldh_tSession session, char *loadfile)
wb_db
db
(
pwr_cNVid
);
wb_db
db
(
pwr_cNVid
);
db
.
copy
(
*
vdbs
,
db_name
);
db
.
copy
(
*
vdbs
,
db_name
);
db
.
close
();
db
.
close
();
erep
->
merep
()
->
copyFiles
(
db_name
);
// Set permissions from umask
char
cmd
[
200
];
sprintf
(
cmd
,
"$pwr_exe/wb_dbchmod.sh %s"
,
db_name
);
system
(
cmd
);
delete
vdbs
;
delete
vdbs
;
}
}
...
@@ -1598,6 +1613,12 @@ ldh_WbLoad( ldh_tSession session, char *loadfile)
...
@@ -1598,6 +1613,12 @@ ldh_WbLoad( ldh_tSession session, char *loadfile)
wb_db
db
(
pwr_cNVid
);
wb_db
db
(
pwr_cNVid
);
db
.
copy
(
*
vwbl
,
db_name
);
db
.
copy
(
*
vwbl
,
db_name
);
db
.
close
();
db
.
close
();
erep
->
merep
()
->
copyFiles
(
db_name
);
// Set permissions from umask
char
cmd
[
200
];
sprintf
(
cmd
,
"$pwr_exe/wb_dbchmod.sh %s"
,
db_name
);
system
(
cmd
);
delete
vwbl
;
delete
vwbl
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment