Changeset 580 for server/common/oursrc/accountadm/admof.c
- Timestamp:
- Jan 5, 2008, 6:06:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/accountadm/admof.c
r579 r580 14 14 #include <string.h> 15 15 #include <sys/types.h> 16 #include <sys/stat.h> 16 17 #include <pwd.h> 18 #include <unistd.h> 17 19 #include <netinet/in.h> 18 20 #include <afs/vice.h> … … 97 99 if (fp == NULL) 98 100 die("internal error: .k5login: %m\n"); 101 struct stat st; 102 if (fstat(fileno(fp), &st) != 0) 103 die("internal error: fstat: %m\n"); 104 if (st.st_uid != pwd->pw_uid && st.st_uid != 0) { 105 fclose(fp); 106 die("internal error: bad .k5login permissions\n"); 107 } 99 108 bool found = false; 100 109 char *line = NULL;
Note: See TracChangeset
for help on using the changeset viewer.