switch(t) {
case DEFAULT:
usedefault = 1;
- /* FALL THROUGH */
+ /* FALLTHRU */
case MACH:
if (!usedefault) {
(stb.st_mode & 077) != 0) {
/* We make this a fatal error to force the
user to correct it. */
- advise(NULL, "Error - file %s must not be world or "
- "group readable.", credentials_file);
+ advise(NULL, "group or other permissions, %#o, "
+ "forbidden: %s", stb.st_mode, credentials_file);
adios(NULL, "Remove password or correct file "
"permissions.");
}
}
printf("Name (%s:%s): ", host, myname);
- if (fgets(tmp, sizeof(tmp) - 1, stdin) == NULL) {
+ if (fgets(tmp, sizeof tmp, stdin) == NULL) {
advise ("tmp", "fgets");
}
- TrimSuffixC(tmp, '\n');
+ trim_suffix_c(tmp, '\n');
if (*tmp != '\0' || myname == NULL) {
myname = tmp;
}