1 --- ./src/test/stow.c 2017-11-19 14:32:53.000000000 +0000
2 +++ ../stow.c 2017-12-07 20:41:54.498696535 +0000
4 if (opt->storage == STORE_IN_FILE && opt->output_file == 0) {
6 char *user = getenv("USER");
14 - "%s: Can't get username. Try explicitly specifying the output file with -o",
20 /* Find password entry for user */
21 /* cppcheck-suppress getpwentCalled as we don't care about multi-threaded in a test prog */
22 - while ((pw = getpwent()) != 0) {
23 - if (strcmp(user, pw->pw_name) == 0) {
26 + while ((pw = getpwent()) != 0) {
27 + if (strcmp(user, pw->pw_name) == 0) {
34 + "%s: Can't get get password entry for user \"%s\" "
35 + "Try explicitly specifying the output file with -o",
36 + program_name, user);
43 - "%s: Can't get get password entry for user \"%s\" "
44 - "Try explicitly specifying the output file with -o",
45 - program_name, user);
49 - if (pw->pw_dir == 0) {
51 - "%s: User \"%s\" has no home directory. "
52 - "Try explicitly specifying the output file with -o",
53 - program_name, user);
56 + if (pw->pw_dir == 0) {
58 + "%s: User \"%s\" has no home directory. "
59 + "Try explicitly specifying the output file with -o",
60 + program_name, user);
64 - snprintf(file, MAXPATHLEN, "%s/.facs/%s", pw->pw_dir, opt->calid);
65 + snprintf(file, MAXPATHLEN, "%s/.facs/%s", pw->pw_dir, opt->calid);
68 opt->output_file = strdup(file);