/[mailutils]/mailutils/pop3d/popauth.c
ViewVC logotype

Diff of /mailutils/pop3d/popauth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gray, Mon Dec 3 16:28:55 2001 UTC revision 1.3 by gray, Fri Dec 28 22:42:55 2001 UTC
# Line 269  action_create (struct action_data *ap) Line 269  action_create (struct action_data *ap)
269    DBM_DATUM contents;    DBM_DATUM contents;
270    char buf[256];    char buf[256];
271    int line = 0;    int line = 0;
272    
273      /* Make sure we have proper privileges if popauth is setuid */
274      setuid (getuid ());
275        
276    if (ap->input_name)    if (ap->input_name)
277      {      {
278        fp = fopen (ap->input_name, "r");        fp = fopen (ap->input_name, "r");
279        if (!fp)        if (!fp)
280          {          {
281            mu_error("can't create %s: %s", ap->input_name, strerror (errno));            mu_error("can't open %s: %s", ap->input_name, strerror (errno));
282            return 1;            return 1;
283          }          }
284      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26