Diff of /src/util.c [c0f3f3] .. [5693c9] Maximize Restore

  Switch to unified view

a/src/util.c b/src/util.c
...
...
106
}
106
}
107
107
108
void
108
void
109
no_privileges (void) {
109
no_privileges (void) {
110
     if (suid) {
110
     if (suid) {
111
#if !defined(_WIN32) && !defined (__CYGWIN32__) && !defined (__BEOS__)
111
#if !defined(_WIN32) && !defined (__CYGWIN__) && !defined (__BEOS__)
112
      setreuid(ruid, ruid);
112
      setreuid(ruid, ruid);
113
      setregid(rgid, rgid);
113
      setregid(rgid, rgid);
114
#endif
114
#endif
115
      suid = 0;
115
      suid = 0;
116
     }
116
     }
...
...
230
230
231
     /*
231
     /*
232
      * If we're debugging, don't really execute the command
232
      * If we're debugging, don't really execute the command
233
      */
233
      */
234
     if ((debug & 1) || !strncmp(command, NOT_SAFE, strlen(NOT_SAFE)))
234
     if ((debug & 1) || !strncmp(command, NOT_SAFE, strlen(NOT_SAFE)))
235
      gripe (NO_EXEC, command);
235
      fatal (NO_EXEC, command);
236
     else
236
     else
237
      status = my_system (command);
237
      status = my_system (command);
238
238
239
     if (status && !silent)
239
     if (status && !silent)
240
      gripe (SYSTEM_FAILED, command, status);
240
      gripe (SYSTEM_FAILED, command, status);