@@ -1570,7 +1570,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
15701570 * NT4 doesn't have CreateRestrictedToken, so just call ordinary
15711571 * CreateProcess
15721572 */
1573- write_stderr (" WARNING: cannot create restricted tokens on this platform\n" );
1573+ write_stderr (_ ( "%s: WARNING: cannot create restricted tokens on this platform\n"), progname );
15741574if (Advapi32Handle != NULL )
15751575FreeLibrary (Advapi32Handle );
15761576return CreateProcess (NULL ,cmd ,NULL ,NULL , FALSE,0 ,NULL ,NULL ,& si ,processInfo );
@@ -1579,7 +1579,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
15791579/* Open the current token to use as a base for the restricted one */
15801580if (!OpenProcessToken (GetCurrentProcess (),TOKEN_ALL_ACCESS ,& origToken ))
15811581{
1582- write_stderr ("Failed to open process token: %lu\n" ,GetLastError ());
1582+ write_stderr (_ ( "%s: could not open process token: %lu\n"), progname ,GetLastError ());
15831583return 0 ;
15841584}
15851585
@@ -1592,7 +1592,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
15921592SECURITY_BUILTIN_DOMAIN_RID ,DOMAIN_ALIAS_RID_POWER_USERS ,0 ,0 ,0 ,0 ,0 ,
159315930 ,& dropSids [1 ].Sid ))
15941594{
1595- write_stderr ("Failed to allocate SIDs: %lu\n" ,GetLastError ());
1595+ write_stderr (_ ( "%s: could not allocate SIDs: %lu\n"), progname ,GetLastError ());
15961596return 0 ;
15971597}
15981598
@@ -1611,7 +1611,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
16111611
16121612if (!b )
16131613{
1614- write_stderr ("Failed to create restricted token: %lu\n" ,GetLastError ());
1614+ write_stderr (_ ( "%s: could not create restricted token: %lu\n"), progname ,GetLastError ());
16151615return 0 ;
16161616}
16171617
@@ -1649,7 +1649,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
16491649 * Log error if we can't get version, or if we're on WinXP/2003 or
16501650 * newer
16511651 */
1652- write_stderr (" WARNING: could not locate all job object functions in system API\n" );
1652+ write_stderr (_ ( "%s: WARNING: could not locate all job object functions in system API\n"), progname );
16531653}
16541654else
16551655{