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
23005084
Kaydet (Commit)
23005084
authored
Eki 25, 2013
tarafından
Tim Golden
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue4905: use INVALID_FILE_ATTRIBUTES where appropriate. (Patch by Ulrich Eckhardt)
üst
7d052362
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
ACKS
Misc/ACKS
+1
-0
posixmodule.c
Modules/posixmodule.c
+5
-5
No files found.
Misc/ACKS
Dosyayı görüntüle @
23005084
...
@@ -342,6 +342,7 @@ Maxim Dzumanenko
...
@@ -342,6 +342,7 @@ Maxim Dzumanenko
Walter Dörwald
Walter Dörwald
Hans Eckardt
Hans Eckardt
Rodolpho Eckhardt
Rodolpho Eckhardt
Ulrich Eckhardt
David Edelsohn
David Edelsohn
John Edmonds
John Edmonds
Grant Edwards
Grant Edwards
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
23005084
...
@@ -487,7 +487,7 @@ _Py_Uid_Converter(PyObject *obj, void *p)
...
@@ -487,7 +487,7 @@ _Py_Uid_Converter(PyObject *obj, void *p)
* but this value would get interpreted as (uid_t)-1 by chown
* but this value would get interpreted as (uid_t)-1 by chown
* and its siblings. That's not what the user meant! So we
* and its siblings. That's not what the user meant! So we
* throw an overflow exception instead. (We already
* throw an overflow exception instead. (We already
* handled a real -1 with PyLong_AsLongAndOverflow() above.)
* handled a real -1 with PyLong_AsLongAndOverflow() above.)
*/
*/
if
(
uid
==
(
uid_t
)
-
1
)
if
(
uid
==
(
uid_t
)
-
1
)
goto
overflow
;
goto
overflow
;
...
@@ -594,7 +594,7 @@ _Py_Gid_Converter(PyObject *obj, void *p)
...
@@ -594,7 +594,7 @@ _Py_Gid_Converter(PyObject *obj, void *p)
* but this value would get interpreted as (gid_t)-1 by chown
* but this value would get interpreted as (gid_t)-1 by chown
* and its siblings. That's not what the user meant! So we
* and its siblings. That's not what the user meant! So we
* throw an overflow exception instead. (We already
* throw an overflow exception instead. (We already
* handled a real -1 with PyLong_AsLongAndOverflow() above.)
* handled a real -1 with PyLong_AsLongAndOverflow() above.)
*/
*/
if
(
gid
==
(
gid_t
)
-
1
)
if
(
gid
==
(
gid_t
)
-
1
)
goto
overflow
;
goto
overflow
;
...
@@ -2666,7 +2666,7 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
...
@@ -2666,7 +2666,7 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
* (Directories cannot be read-only on Windows.)
* (Directories cannot be read-only on Windows.)
*/
*/
return_value
=
PyBool_FromLong
(
return_value
=
PyBool_FromLong
(
(attr !=
0xFFFFFFFF
) &&
(
attr
!=
INVALID_FILE_ATTRIBUTES
)
&&
(
!
(
mode
&
2
)
||
(
!
(
mode
&
2
)
||
!
(
attr
&
FILE_ATTRIBUTE_READONLY
)
||
!
(
attr
&
FILE_ATTRIBUTE_READONLY
)
||
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
)));
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
)));
...
@@ -2938,7 +2938,7 @@ posix_chmod(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -2938,7 +2938,7 @@ posix_chmod(PyObject *self, PyObject *args, PyObject *kwargs)
attr
=
GetFileAttributesW
(
path
.
wide
);
attr
=
GetFileAttributesW
(
path
.
wide
);
else
else
attr
=
GetFileAttributesA
(
path
.
narrow
);
attr
=
GetFileAttributesA
(
path
.
narrow
);
if (attr ==
0xFFFFFFFF
)
if
(
attr
==
INVALID_FILE_ATTRIBUTES
)
result
=
0
;
result
=
0
;
else
{
else
{
if
(
mode
&
_S_IWRITE
)
if
(
mode
&
_S_IWRITE
)
...
@@ -7795,7 +7795,7 @@ posix_dup(PyObject *self, PyObject *args)
...
@@ -7795,7 +7795,7 @@ posix_dup(PyObject *self, PyObject *args)
if
(
!
PyArg_ParseTuple
(
args
,
"i:dup"
,
&
fd
))
if
(
!
PyArg_ParseTuple
(
args
,
"i:dup"
,
&
fd
))
return
NULL
;
return
NULL
;
fd
=
_Py_dup
(
fd
);
fd
=
_Py_dup
(
fd
);
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
return
NULL
;
return
NULL
;
...
...
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