328
329
"it looks like you have never mounted with this key \n"
329
330
"before. This could mean that you have typed your \n"
330
331
"passphrase wrong.\n\n", sig_cache_filename);
331
printf("Would you like to proceed with the mount (yes/no)? ");
334
yesno[i++] = mygetchar();
335
} while (yesno[i-1] != '\n' && i < 3);
337
if (yesno[i-1] != '\n')
338
while (mygetchar() != '\n');
339
if (memcmp(yesno, "yes", 3) == 0) {
340
printf("Would you like to append sig [%s] to\n"
342
"in order to avoid this warning in the future "
343
"(yes/no)? ", auth_tok_sig, sig_cache_filename);
335
printf("Would you like to proceed "
336
"with the mount (yes/no)? ");
346
339
yesno[i++] = mygetchar();
347
} while (yesno[i-1] != '\n' && i < 3);
349
if (yesno[i-1] != '\n')
340
} while (yesno[i-1] != '\n' && i < 4);
341
if (yesno[i-1] != '\n') {
350
342
while (mygetchar() != '\n');
351
if (memcmp(yesno, "yes", 3) == 0) {
346
} while ((rc = strcmp(yesno, "yes")) && strcmp(yesno, "no")
351
printf("Would you like to append sig [%s] to\n"
352
"[%s] \nin order to avoid this warning "
353
"in the future (yes/no)? ", auth_tok_sig,
357
yesno[i++] = mygetchar();
358
} while (yesno[i-1] != '\n' && i < 4);
359
if (yesno[i-1] != '\n') {
360
while (mygetchar() != '\n');
364
} while ((rc = strcmp(yesno, "yes"))
365
&& strcmp(yesno, "no") && (++tries < 5));
352
368
if ((rc = ecryptfs_append_sig(
354
sig_cache_filename))) {
370
sig_cache_filename))) {
355
371
printf("Error appending to [%s]; rc = "
356
"[%d]. Aborting mount.\n",
357
sig_cache_filename, rc);
372
"[%d]. Aborting mount.\n",
373
sig_cache_filename, rc);
360
376
printf("Successfully appended new sig to user "
363
printf("Not adding sig to user sig cache "
364
"file; continuing with mount.\n");
379
if (strcmp(yesno,"no"))
382
printf("Not adding sig to user sig "
383
"cache file; continuing with "
389
if (strcmp(yesno,"no"))
366
391
printf("Aborting mount.\n");
600
625
&ctx, &mnt_params, version, opts_str,
601
626
ECRYPTFS_ASK_FOR_ALL_MOUNT_OPTIONS);
603
630
printf("Error attempting to evaluate mount options: "
604
631
"[%d] %s\nCheck your system logs for details "
605
632
"on why this happened.\nTry updating your "