https://bugs.winehq.org/show_bug.cgi?id=52193
Bug ID: 52193 Summary: schtasks.exe:schtasks fails on Windows 7 when missing privileges Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: taskschd Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
schtasks.exe:schtasks fails on Windows 7 when missing privileges:
schtasks.c:190: Test failed: DeleteTask failed: 80070005 schtasks.c:193: Test failed: r = 0 schtasks.c:201: Test failed: r = 1 schtasks.c:204: Test failed: r = 0 schtasks.c:224: Test failed: r = 1
https://test.winehq.org/data/patterns.html#schtasks.exe:schtasks
When running as an administrator but without elevated privileges it looks like Windows 7 allows creating new tasks, but does not allow deleting the freshly created task!
This behavior also seems to be specific to Windows 7 since there is no failure on w8adm and w1064-adm.
https://bugs.winehq.org/show_bug.cgi?id=52193
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=52193
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |739c5c547c361880a69993b2185 | |5af0fa00ade76 Status|NEW |RESOLVED
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This is fixed:
commit 739c5c547c361880a69993b21855af0fa00ade76 Author: François Gouget fgouget@codeweavers.com Date: Sat Mar 25 17:52:59 2023 +0100
schtasks/tests: Deleting folders requires elevated privileges on Windows 7 & 8.
This means skipping any test that requires creating a task as the test would be unable to clean up after itself.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=52193 Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54634
https://bugs.winehq.org/show_bug.cgi?id=52193
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.6.