"'c'p / 'm'v as?",
"'c'urrent / 's'el?",
"rm -rf %s file%s?",
- "limit exceeded\n",
+ "limit exceeded",
"'f'ile / 'd'ir / 's'ym / 'h'ard?",
"'c'li / 'g'ui?",
"overwrite?",
size_t offsets[LIST_FILES_MAX];
char **paths = NULL;
ssize_t input_read, total_read = 0, off = 0;
+ int msgnum = 0;
if (!input) {
DPRINTF_S(strerror(errno));
}
if (entries == LIST_FILES_MAX) {
- fprintf(stderr, messages[MSG_LIMIT], NULL);
+ msgnum = MSG_LIMIT;
goto malloc_1;
}
}
if (chunk_count == 512) {
- fprintf(stderr, messages[MSG_LIMIT], NULL);
+ msgnum = MSG_LIMIT;
goto malloc_1;
}
if (off != total_read) {
if (entries == LIST_FILES_MAX) {
- fprintf(stderr, messages[MSG_LIMIT], NULL);
+ msgnum = MSG_LIMIT;
goto malloc_1;
}
DPRINTF_D(chunk_count);
if (!entries) {
- if (g_states & STATE_PLUGIN_INIT) {
- printmsg(messages[MSG_0_ENTRIES]);
- xdelay(XDELAY_INTERVAL_MS);
- } else
- fprintf(stderr, "%s\n", messages[MSG_0_ENTRIES]);
+ msgnum = MSG_0_ENTRIES;
goto malloc_1;
}
for (i = entries - 1; i >= 0; --i)
free(paths[i]);
malloc_1:
+ if (msgnum) {
+ if (g_states & STATE_PLUGIN_INIT) {
+ printmsg(messages[msgnum]);
+ xdelay(XDELAY_INTERVAL_MS);
+ } else
+ fprintf(stderr, "%s\n", messages[msgnum]);
+ }
free(input);
free(paths);
return tmpdir;