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
6151c6f4
Kaydet (Commit)
6151c6f4
authored
Tem 04, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735300-1 Unchecked return value
Change-Id: I9cb69643ba43adc76ef38db61da2b7c1c3d3e3c1
üst
b89311b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
optinet2.cxx
cui/source/options/optinet2.cxx
+14
-4
No files found.
cui/source/options/optinet2.cxx
Dosyayı görüntüle @
6151c6f4
...
...
@@ -1030,18 +1030,28 @@ bool MozPluginTabPage::installPlugin()
#ifdef UNIX
// get the real file referred by .so lnk file
char
*
pHome
=
getpwuid
(
getuid
())
->
pw_dir
;
if
(
!
pHome
)
{
return
false
;
}
OString
lnkFilePath
(
OString
(
pHome
)
+
OString
(
"/.mozilla/plugins/libnpsoplugin"
SAL_DLLEXTENSION
));
remove
(
lnkFilePath
.
getStr
());
(
void
)
remove
(
lnkFilePath
.
getStr
());
// create the dirs if necessary
struct
stat
buf
;
char
tmpDir
[
NPP_PATH_MAX
]
=
{
0
};
s
printf
(
tmpDir
,
"%s/.mozilla"
,
pHome
);
s
nprintf
(
tmpDir
,
NPP_PATH_MAX
,
"%s/.mozilla"
,
pHome
);
if
(
0
>
stat
(
lnkFilePath
.
getStr
(),
&
buf
))
{
mkdir
(
tmpDir
,
0755
);
if
(
mkdir
(
tmpDir
,
0755
))
{
return
false
;
}
strcat
(
tmpDir
,
"/plugins"
);
mkdir
(
tmpDir
,
0755
);
if
(
mkdir
(
tmpDir
,
0755
))
{
return
false
;
}
}
// get the real file path
...
...
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