~ubuntu-branches/ubuntu/oneiric/likewise-open/oneiric

« back to all changes in this revision

Viewing changes to pstore/tools/dump_machine_account/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Salley
  • Date: 2010-11-22 12:06:00 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122120600-8lba1fpceot71wlb
Tags: 6.0.0.53010-1
Likewise Open 6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
    )
153
153
{
154
154
    DWORD dwError = 0;
155
 
    PSTR  pszReqDomainName;
 
155
    PSTR  pszReqDomainName = NULL;
156
156
    PSTR  pszDomainName = NULL;
157
157
    PSTR  pszDomainSID = NULL;
158
158
    PSTR  pszMachineAccount = NULL;
165
165
    size_t dwErrorBufferSize = 0;
166
166
    BOOLEAN bPrintOrigError = TRUE;
167
167
 
 
168
    if (geteuid() != 0) {
 
169
        fprintf(stderr, "This program requires super-user privileges.\n");
 
170
        dwError = LWPS_ERROR_ACCESS_DENIED;
 
171
        BAIL_ON_LWPS_ERROR(dwError);
 
172
    }
 
173
 
168
174
    dwError = ParseArgs(argc, argv, &pszReqDomainName);
169
175
    BAIL_ON_LWPS_ERROR(dwError);
170
176