Searched refs:ROOTKEY_FILE_BACKUP (Results 1 - 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keylogin.c | 53 #define ROOTKEY_FILE_BACKUP "/etc/.rootkey.bak" macro 124 unlink(ROOTKEY_FILE_BACKUP); 125 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) { 126 if ((bakfd = creat(ROOTKEY_FILE_BACKUP, 0600)) < 0) { 137 (void) rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 146 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 149 if (!(bakfile = fopen(ROOTKEY_FILE_BACKUP, "r"))) { 155 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 212 unlink(ROOTKEY_FILE_BACKUP);
|
H A D | chkey.c | 69 #define ROOTKEY_FILE_BACKUP "/etc/.rootkey.bak" macro 743 unlink(ROOTKEY_FILE_BACKUP); 744 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) { 745 if ((bakfd = creat(ROOTKEY_FILE_BACKUP, 0600)) < 0) { 756 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 765 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 768 if (!(bakfile = fopen(ROOTKEY_FILE_BACKUP, "r"))) { 774 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); 831 unlink(ROOTKEY_FILE_BACKUP);
|
Completed in 58 milliseconds