Searched refs:ROOTKEY_FILE_BACKUP (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keylogin.c | 51 #define ROOTKEY_FILE_BACKUP "/etc/.rootkey.bak" macro 122 unlink(ROOTKEY_FILE_BACKUP); in write_rootkey() 123 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) { in write_rootkey() 124 if ((bakfd = creat(ROOTKEY_FILE_BACKUP, 0600)) < 0) { in write_rootkey() 135 (void) rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 144 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 147 if (!(bakfile = fopen(ROOTKEY_FILE_BACKUP, "r"))) { in write_rootkey() 153 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 210 unlink(ROOTKEY_FILE_BACKUP); in write_rootkey()
|
H A D | chkey.c | 69 #define ROOTKEY_FILE_BACKUP "/etc/.rootkey.bak" macro 743 unlink(ROOTKEY_FILE_BACKUP); in write_rootkey() 744 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) { in write_rootkey() 745 if ((bakfd = creat(ROOTKEY_FILE_BACKUP, 0600)) < 0) { in write_rootkey() 756 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 765 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 768 if (!(bakfile = fopen(ROOTKEY_FILE_BACKUP, "r"))) { in write_rootkey() 774 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE); in write_rootkey() 831 unlink(ROOTKEY_FILE_BACKUP); in write_rootkey()
|