Correzione
git-svn-id: svn://10.65.10.50/trunk@1445 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7b22fdc31e
commit
61ca770a4f
@ -357,10 +357,8 @@ void TApplication::set_perms()
|
||||
users.put("USERNAME", utente);
|
||||
if (users.read() == NOERR)
|
||||
{
|
||||
const TString80 aut(users.get("AUTSTR"));
|
||||
const int max = aut.len();
|
||||
|
||||
for (int i = 1 ; i < max; i++)
|
||||
const TString& aut = users.get("AUTSTR");
|
||||
for (int i = aut.len()-1; i > 0; i--)
|
||||
_user_aut.set(i, aut[i] == 'X');
|
||||
}
|
||||
}
|
||||
@ -369,12 +367,19 @@ void TApplication::set_perms()
|
||||
|
||||
|
||||
void TApplication::check_parameters(int & argc, char* argv[])
|
||||
{
|
||||
if (strncmp(argv[argc-1], "-u", 2) == 0 || strncmp(argv[argc-1], "/u", 2) == 0)
|
||||
user() = &argv[--argc][2];
|
||||
{
|
||||
if (argc > 1)
|
||||
{
|
||||
const TFixed_string u(argv[argc-1]);
|
||||
if (u.compare("-u", 2, TRUE) == 0 || u.compare("/u", 2, TRUE) == 0)
|
||||
{
|
||||
user() = u.mid(2);
|
||||
argc--;
|
||||
}
|
||||
#ifdef DBG
|
||||
else user() = "PRASSI";
|
||||
else user() = "PRASSI";
|
||||
#endif
|
||||
}
|
||||
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
const long twin_style = WSF_ICONIZABLE | WSF_SIZE | WSF_CLOSE | WSF_MAXIMIZED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user