~ubuntu-branches/ubuntu/breezy/uucp/breezy

« back to all changes in this revision

Viewing changes to unix/access.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Palfrader
  • Date: 2004-12-30 15:30:22 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041230153022-mx4cdr9j3u9bldo3
Tags: 1.07-12
Add cs localisation for debconf templates (closes: #287305).

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    return TRUE;
54
54
 
55
55
 if (stat ((char *) zfile, &s) != 0)
56
 
     {
57
 
      ulog (LOG_ERROR, "stat (%s): %s", zfile, strerror (errno));
58
 
      return FALSE;
59
 
    }
 
56
   {
 
57
     /* If we get an EACCES error, we can't read the file using our
 
58
        euid.  Therefore, the daemon will not have access to the file.  */
 
59
     if (errno == EACCES)
 
60
       ulog (LOG_ERROR, "%s: cannot be read by daemon", zfile);
 
61
     else
 
62
       ulog (LOG_ERROR, "stat (%s): %s", zfile, strerror (errno));
 
63
     return FALSE;
 
64
   }
60
65
 
61
66
  /* If our euid is not our uid, but it is the file's uid, see if the
62
67
     owner has read access.  Otherwise, if our egid is not our gid,