Searched refs:ROOTKEY_FILE (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/keyserv/
H A Dkeylogin.c52 #define ROOTKEY_FILE "/etc/.rootkey" macro
125 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) {
133 if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
137 (void) rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
145 unlink(ROOTKEY_FILE);
146 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
154 unlink(ROOTKEY_FILE);
155 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
214 fprintf(stderr, "Wrote secret key into %s\n", ROOTKEY_FILE);
217 ROOTKEY_FILE);
[all...]
H A Dchkey.c68 #define ROOTKEY_FILE "/etc/.rootkey" macro
744 if ((rename(ROOTKEY_FILE, ROOTKEY_FILE_BACKUP)) < 0) {
752 if ((rootfd = open(ROOTKEY_FILE, O_WRONLY+O_CREAT, 0600)) < 0) {
756 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
764 unlink(ROOTKEY_FILE);
765 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
773 unlink(ROOTKEY_FILE);
774 rename(ROOTKEY_FILE_BACKUP, ROOTKEY_FILE);
H A Dchkey_common.c45 #define ROOTKEY_FILE "/etc/.rootkey" macro
H A Dkeyserv.c510 #define ROOTKEY_FILE "/etc/.rootkey" macro

Completed in 60 milliseconds