Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d37e9645
Kaydet (Commit)
d37e9645
authored
Nis 02, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal/osl/unx/security.c -> .cxx
Change-Id: If8dbfa3e26a02ac3d5ee0077f730eeca4b59c4d7
üst
d059866a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Library_sal.mk
sal/Library_sal.mk
+1
-1
security.cxx
sal/osl/unx/security.cxx
+5
-5
No files found.
sal/Library_sal.mk
Dosyayı görüntüle @
d37e9645
...
@@ -164,6 +164,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
...
@@ -164,6 +164,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/process
\
sal/osl/unx/process
\
sal/osl/unx/process_impl
\
sal/osl/unx/process_impl
\
sal/osl/unx/profile
\
sal/osl/unx/profile
\
sal/osl/unx/security
\
$(if
$(filter
DESKTOP,$(BUILD_TYPE)),
sal/osl/unx/salinit)
\
$(if
$(filter
DESKTOP,$(BUILD_TYPE)),
sal/osl/unx/salinit)
\
))
))
$(eval
$(call
gb_Library_add_cobjects,sal,\
$(eval
$(call
gb_Library_add_cobjects,sal,\
...
@@ -172,7 +173,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\
...
@@ -172,7 +173,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\
sal/osl/unx/nlsupport
\
sal/osl/unx/nlsupport
\
sal/osl/unx/pipe
\
sal/osl/unx/pipe
\
sal/osl/unx/readwrite_helper
\
sal/osl/unx/readwrite_helper
\
sal/osl/unx/security
\
sal/osl/unx/socket
\
sal/osl/unx/socket
\
sal/osl/unx/system
\
sal/osl/unx/system
\
sal/osl/unx/tempfile
\
sal/osl/unx/tempfile
\
...
...
sal/osl/unx/security.c
→
sal/osl/unx/security.c
xx
Dosyayı görüntüle @
d37e9645
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
static
oslSecurityError
SAL_CALL
static
oslSecurityError
SAL_CALL
osl_psz_loginUser
(
const
sal_Char
*
pszUserName
,
const
sal_Char
*
pszPasswd
,
osl_psz_loginUser
(
const
sal_Char
*
pszUserName
,
const
sal_Char
*
pszPasswd
,
oslSecurity
*
pSecurity
);
oslSecurity
*
pSecurity
);
sal_Bool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
);
extern
"C"
sal_Bool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getUserName
(
oslSecurity
Security
,
sal_Char
*
pszName
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getUserName
(
oslSecurity
Security
,
sal_Char
*
pszName
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getHomeDir
(
oslSecurity
Security
,
sal_Char
*
pszDirectory
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getHomeDir
(
oslSecurity
Security
,
sal_Char
*
pszDirectory
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getConfigDir
(
oslSecurity
Security
,
sal_Char
*
pszDirectory
,
sal_uInt32
nMax
);
static
sal_Bool
SAL_CALL
osl_psz_getConfigDir
(
oslSecurity
Security
,
sal_Char
*
pszDirectory
,
sal_uInt32
nMax
);
...
@@ -91,7 +91,7 @@ static oslSecurityImpl * growSecurityImpl(
...
@@ -91,7 +91,7 @@ static oslSecurityImpl * growSecurityImpl(
*
bufSize
=
SIZE_MAX
-
offsetof
(
oslSecurityImpl
,
m_buffer
);
*
bufSize
=
SIZE_MAX
-
offsetof
(
oslSecurityImpl
,
m_buffer
);
n
=
SIZE_MAX
;
n
=
SIZE_MAX
;
}
}
p
=
realloc
(
impl
,
n
);
p
=
static_cast
<
oslSecurityImpl
*>
(
realloc
(
impl
,
n
)
);
memset
(
p
,
0
,
n
);
memset
(
p
,
0
,
n
);
}
}
if
(
p
==
NULL
)
{
if
(
p
==
NULL
)
{
...
@@ -233,8 +233,8 @@ sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent,
...
@@ -233,8 +233,8 @@ sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent,
return
sal_False
;
return
sal_False
;
nChr
=
snprintf
(
buffer
,
sizeof
(
buffer
),
"%u"
,
pSecImpl
->
m_pPasswd
.
pw_uid
);
nChr
=
snprintf
(
buffer
,
sizeof
(
buffer
),
"%u"
,
pSecImpl
->
m_pPasswd
.
pw_uid
);
if
(
nChr
<
0
||
SAL_INT_CAST
(
sal_uInt32
,
nChr
)
>=
sizeof
(
buffer
)
if
(
nChr
<
0
||
sal
::
static_int_cast
<
sal_uInt32
>
(
nChr
)
>=
sizeof
(
buffer
)
||
SAL_INT_CAST
(
sal_uInt32
,
nChr
)
>=
nMax
)
||
sal
::
static_int_cast
<
sal_uInt32
>
(
nChr
)
>=
nMax
)
return
sal_False
;
/* leave *pszIdent unmodified in case of failure */
return
sal_False
;
/* leave *pszIdent unmodified in case of failure */
memcpy
(
pszIdent
,
buffer
,
nChr
+
1
);
memcpy
(
pszIdent
,
buffer
,
nChr
+
1
);
...
@@ -483,7 +483,7 @@ sal_Bool SAL_CALL osl_isAdministrator(oslSecurity Security)
...
@@ -483,7 +483,7 @@ sal_Bool SAL_CALL osl_isAdministrator(oslSecurity Security)
void
SAL_CALL
osl_freeSecurityHandle
(
oslSecurity
Security
)
void
SAL_CALL
osl_freeSecurityHandle
(
oslSecurity
Security
)
{
{
deleteSecurityImpl
(
Security
);
deleteSecurityImpl
(
static_cast
<
oslSecurityImpl
*>
(
Security
)
);
}
}
...
...
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