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

Commit98b5550

Browse files
committed
Sun Apr 23 12:07:33 ADT 2023
1 parent175801a commit98b5550

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/ashpk_core.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,13 +1313,15 @@ def yes_no(msg):
13131313
defmain():
13141314
# TODO 2023 exception: Make 'ash tree' run without root permissions
13151315
ifsys.platform.startswith("linux")andos.geteuid()!=0:
1316-
exit("sudo/doas is required to run ash!")
1316+
exit("F: Run ash with super user privileges!")
1317+
elifsys.platform.startswith("cosmo")andos.getuid()!=0:### TODO use geteuid when fixed
1318+
exit("F: Run ash with super user privileges!")
13171319
elifsys.platform.startswith("windows"):
1318-
print("TODO")
1320+
fromctypesimportwindll# type: ignore
1321+
ifwindll.shell32.IsUserAnAdmin()!=0:
1322+
exit("F: Run ash with admin privileges!")
13191323
elifsys.platform.startswith("darwin"):
13201324
print("TODO")
1321-
elifsys.platform.startswith("cosmo"):
1322-
print("TODO")
13231325
else:
13241326
importer=DictImporter()# Dict importer
13251327
# isChroot = chroot_check() ### TODO

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp