Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
29275c93
Kaydet (Commit)
29275c93
authored
Eyl 17, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deal with NULL fields in mkpwent.
üst
ceb7c18c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
pwdmodule.c
Modules/pwdmodule.c
+12
-1
No files found.
Modules/pwdmodule.c
Dosyayı görüntüle @
29275c93
...
@@ -44,6 +44,17 @@ exception is raised if the entry asked for cannot be found.");
...
@@ -44,6 +44,17 @@ exception is raised if the entry asked for cannot be found.");
static
PyTypeObject
StructPwdType
;
static
PyTypeObject
StructPwdType
;
static
void
sets
(
PyObject
*
v
,
int
i
,
char
*
val
)
{
if
(
val
)
PyStructSequence_SET_ITEM
(
v
,
i
,
PyString_FromString
(
val
));
else
{
PyStructSequence_SET_ITEM
(
v
,
i
,
Py_None
);
Py_INCREF
(
Py_None
);
}
}
static
PyObject
*
static
PyObject
*
mkpwent
(
struct
passwd
*
p
)
mkpwent
(
struct
passwd
*
p
)
{
{
...
@@ -53,7 +64,7 @@ mkpwent(struct passwd *p)
...
@@ -53,7 +64,7 @@ mkpwent(struct passwd *p)
return
NULL
;
return
NULL
;
#define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyInt_FromLong((long) val))
#define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyInt_FromLong((long) val))
#define SETS(i,val)
PyStructSequence_SET_ITEM(v, i, PyString_FromString(val)
)
#define SETS(i,val)
sets(v, i, val
)
SETS
(
setIndex
++
,
p
->
pw_name
);
SETS
(
setIndex
++
,
p
->
pw_name
);
SETS
(
setIndex
++
,
p
->
pw_passwd
);
SETS
(
setIndex
++
,
p
->
pw_passwd
);
...
...
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