version 1.139, 2019/06/06 05:13:13 |
version 1.140, 2019/06/28 13:35:04 |
|
|
if (strcmp(filename, "-") == 0) { |
if (strcmp(filename, "-") == 0) { |
fd = STDIN_FILENO; |
fd = STDIN_FILENO; |
filename = "(stdin)"; |
filename = "(stdin)"; |
} else if ((fd = open(filename, O_RDONLY)) < 0) { |
} else if ((fd = open(filename, O_RDONLY)) == -1) { |
perror(filename); |
perror(filename); |
return -1; |
return -1; |
} |
} |
|
|
for (i = 0; default_files[i]; i++) { |
for (i = 0; default_files[i]; i++) { |
snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, |
snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, |
default_files[i]); |
default_files[i]); |
if (stat(buf, &st) < 0) |
if (stat(buf, &st) == -1) |
continue; |
continue; |
if (do_file(agent_fd, deleting, key_only, buf, |
if (do_file(agent_fd, deleting, key_only, buf, |
qflag) == -1) |
qflag) == -1) |