Lines Matching refs:ROOTKEY_FILE
52 #define ROOTKEY_FILE "/etc/.rootkey"
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);