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
5ce93720
Kaydet (Commit)
5ce93720
authored
Kas 19, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
secimpl.h -> secimpl.hxx
Change-Id: I0fb87c5658bd02e327df8fdf3e0aa79f20bbc111
üst
299a8a50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
18 deletions
+10
-18
pipe.cxx
sal/osl/unx/pipe.cxx
+1
-1
process.cxx
sal/osl/unx/process.cxx
+1
-1
secimpl.hxx
sal/osl/unx/secimpl.hxx
+3
-11
security.cxx
sal/osl/unx/security.cxx
+5
-5
No files found.
sal/osl/unx/pipe.cxx
Dosyayı görüntüle @
5ce93720
...
...
@@ -28,7 +28,7 @@
#include <rtl/bootstrap.h>
#include "sockimpl.h"
#include "secimpl.h"
#include "secimpl.h
xx
"
#define PIPEDEFAULTPATH "/tmp"
#define PIPEALTERNATEPATH "/var/tmp"
...
...
sal/osl/unx/process.cxx
Dosyayı görüntüle @
5ce93720
...
...
@@ -60,7 +60,7 @@
#include "file_url.hxx"
#include "readwrite_helper.hxx"
#include "sockimpl.h"
#include "secimpl.h"
#include "secimpl.h
xx
"
#define MAX_ARGS 255
#define MAX_ENVS 255
...
...
sal/osl/unx/secimpl.h
→
sal/osl/unx/secimpl.h
xx
Dosyayı görüntüle @
5ce93720
...
...
@@ -17,25 +17,17 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef
_OSL_SECURITYIMPL_H_
#define
_OSL_SECURITYIMPL_H_
#ifndef
INCLUDED_SAL_OSL_UNX_SECIMPL_HXX
#define
INCLUDED_SAL_OSL_UNX_SECIMPL_HXX
#include <pwd.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
_oslSecurityImpl
{
struct
passwd
m_pPasswd
;
char
m_buffer
[
1
];
/* should be a C99 flexible array member */
}
oslSecurityImpl
;
sal_Bool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
);
#ifdef __cplusplus
}
#endif
bool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
);
#endif
...
...
sal/osl/unx/security.cxx
Dosyayı görüntüle @
5ce93720
...
...
@@ -42,7 +42,7 @@
#include <crypt.h>
#endif
#include "secimpl.h"
#include "secimpl.h
xx
"
#ifdef ANDROID
#define getpwuid_r(uid, pwd, buf, buflen, result) (*(result) = getpwuid(uid), (*(result) ? (memcpy (buf, *(result), sizeof (struct passwd)), 0) : errno))
...
...
@@ -227,7 +227,7 @@ sal_Bool SAL_CALL osl_getUserIdent(oslSecurity Security, rtl_uString **ustrIdent
return
bRet
;
}
sal_B
ool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
)
b
ool
SAL_CALL
osl_psz_getUserIdent
(
oslSecurity
Security
,
sal_Char
*
pszIdent
,
sal_uInt32
nMax
)
{
sal_Char
buffer
[
32
];
sal_Int32
nChr
;
...
...
@@ -235,15 +235,15 @@ sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent,
oslSecurityImpl
*
pSecImpl
=
(
oslSecurityImpl
*
)
Security
;
if
(
pSecImpl
==
NULL
)
return
sal_F
alse
;
return
f
alse
;
nChr
=
snprintf
(
buffer
,
sizeof
(
buffer
),
"%u"
,
pSecImpl
->
m_pPasswd
.
pw_uid
);
if
(
nChr
<
0
||
sal
::
static_int_cast
<
sal_uInt32
>
(
nChr
)
>=
sizeof
(
buffer
)
||
sal
::
static_int_cast
<
sal_uInt32
>
(
nChr
)
>=
nMax
)
return
sal_F
alse
;
/* leave *pszIdent unmodified in case of failure */
return
f
alse
;
/* leave *pszIdent unmodified in case of failure */
memcpy
(
pszIdent
,
buffer
,
nChr
+
1
);
return
sal_T
rue
;
return
t
rue
;
}
sal_Bool
SAL_CALL
osl_getUserName
(
oslSecurity
Security
,
rtl_uString
**
ustrName
)
...
...
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