Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
a083fa58
Commit
a083fa58
authored
Dec 08, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправил ошибку в обработке userparam для uniset-admin --oinfo
parent
4ac2dbf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
admin.cc
Utilities/Admin/admin.cc
+5
-2
libuniset2.spec
conf/libuniset2.spec
+4
-1
No files found.
Utilities/Admin/admin.cc
View file @
a083fa58
...
@@ -244,8 +244,9 @@ int main(int argc, char** argv)
...
@@ -244,8 +244,9 @@ int main(int argc, char** argv)
std
::
string
userparam
=
{
""
};
std
::
string
userparam
=
{
""
};
if
(
checkArg
(
optind
+
1
,
argc
,
argv
)
)
// смотрим второй параметр
userparam
=
string
(
argv
[
optind
+
1
]);
if
(
checkArg
(
optind
,
argc
,
argv
)
)
userparam
=
string
(
argv
[
optind
]);
return
oinfo
(
optarg
,
ui
,
userparam
);
return
oinfo
(
optarg
,
ui
,
userparam
);
}
}
...
@@ -253,6 +254,7 @@ int main(int argc, char** argv)
...
@@ -253,6 +254,7 @@ int main(int argc, char** argv)
case
'a'
:
//--apiRequest
case
'a'
:
//--apiRequest
{
{
// смотрим второй параметр
if
(
checkArg
(
optind
,
argc
,
argv
)
==
0
)
if
(
checkArg
(
optind
,
argc
,
argv
)
==
0
)
{
{
if
(
!
quiet
)
if
(
!
quiet
)
...
@@ -338,6 +340,7 @@ int main(int argc, char** argv)
...
@@ -338,6 +340,7 @@ int main(int argc, char** argv)
auto
conf
=
uniset_init
(
argc
,
argv
,
conffile
);
auto
conf
=
uniset_init
(
argc
,
argv
,
conffile
);
UInterface
ui
(
conf
);
UInterface
ui
(
conf
);
ui
.
initBackId
(
uniset
::
AdminID
);
ui
.
initBackId
(
uniset
::
AdminID
);
string
name
=
(
optarg
)
?
optarg
:
""
;
string
name
=
(
optarg
)
?
optarg
:
""
;
return
logRotate
(
name
,
ui
);
return
logRotate
(
name
,
ui
);
}
}
...
...
conf/libuniset2.spec
View file @
a083fa58
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
Name: libuniset2
Name: libuniset2
Version: 2.6
Version: 2.6
Release: alt
4
Release: alt
5
Summary: UniSet - library for building distributed industrial control systems
Summary: UniSet - library for building distributed industrial control systems
License: LGPL
License: LGPL
...
@@ -507,6 +507,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
...
@@ -507,6 +507,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# history of current unpublished changes
# history of current unpublished changes
%changelog
%changelog
* Thu Dec 08 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt5
- fixed bug in uniset2-admin --oinfo
* Wed Dec 07 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt4
* Wed Dec 07 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt4
- new version
- new version
- getChangedTime --> getTimeChange
- getChangedTime --> getTimeChange
...
...
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