Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

netrc security check may fail on WASI due to the lack ofos.getuid #135815

Closed
Assignees
picnixz
Labels
OS-wasistdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@picnixz

Description

@picnixz

Bug report

Bug description:

Found as part of#135802.

For instance:

File"/Lib/test/test_netrc.py",line69,inuse_default_netrc_in_homereturnnetrc.netrc()~~~~~~~~~~~^^File"/Lib/netrc.py",line76,in__init__self._parse(file,fp,default_netrc)~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^File"/Lib/netrc.py",line143,in_parseself._security_check(fp,default_netrc,self.hosts[entryname][0])~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/Lib/netrc.py",line148,in_security_checkifprop.st_uid!=os.getuid():^^^^^^^^^AttributeError:module'os'hasnoattribute'getuid'.Didyoumean:'getpid'?

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-wasistdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp