/[mailutils]/mailutils/lib/mu_dbm.c
ViewVC logotype

Diff of /mailutils/lib/mu_dbm.c

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

revision 1.9 by polak, Sun Feb 9 20:39:57 2003 UTC revision 1.10 by gray, Fri Sep 5 09:03:00 2003 UTC
# Line 29  Line 29 
29  # include <strings.h>  # include <strings.h>
30  #endif  #endif
31  #include <errno.h>  #include <errno.h>
32    #include <mailutils/errno.h>
33  #include <mu_dbm.h>  #include <mu_dbm.h>
34  #include <xalloc.h>  #include <xalloc.h>
35    
# Line 46  mu_fcheck_perm (int fd, int mode) Line 47  mu_fcheck_perm (int fd, int mode)
47      }      }
48    if ((st.st_mode & 0777) != mode)    if ((st.st_mode & 0777) != mode)
49      {      {
50        errno = EPERM;        errno = MU_ERR_UNSAFE_PERMS;
51      return 1;        return 1;
52      }      }
53    return 0;    return 0;
54  }  }
# Line 68  mu_check_perm (const char *name, int mod Line 69  mu_check_perm (const char *name, int mod
69      }      }
70    if ((st.st_mode & 0777) != mode)    if ((st.st_mode & 0777) != mode)
71      {      {
72        errno = EPERM;        errno = MU_ERR_UNSAFE_PERMS;
73      return 1;        return 1;
74      }      }
75    return 0;    return 0;
76  }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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