From: Andre Noll Date: Fri, 3 May 2019 22:49:44 +0000 (+0200) Subject: Merge branch 'master' into next X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=refs%2Fheads%2Fnext;hp=48149bb0630121678fe63709125949bbc2729f80;p=adu.git Merge branch 'master' into next * master: Remove some duplicate const specifiers. Add link to author homepage. Reword summary text. create: Make the directory scan more robust. --- diff --git a/README b/README index 9d27830..5c2b23c 100644 --- a/README +++ b/README @@ -1,6 +1,7 @@ adu creates a database containing disk usage statistics of a given -directory. It allows to query that database to quickly retrieve usage -patterns of subdirectories containing files owned by a given user. +directory. This database can be queried to quickly retrieve, for +example, the number and the size of all files in a subdirectory owned +by a given user. Four different output modes are available: global list, global summary, user list and user summary. The format of the output may be customized diff --git a/create.c b/create.c index af5694c..a3373db 100644 --- a/create.c +++ b/create.c @@ -140,10 +140,9 @@ static int scan_dir(char *dirname, uint64_t *parent_dir_num) check_signals(); DEBUG_LOG("----------------- %llu: %s\n", (long long unsigned)current_dir_num, dirname); ret = adu_opendir(dirname, &dir, &cwd_fd); - if (ret < 0) { - if (ret != -ERRNO_TO_ERROR(EACCES)) - return ret; - WARNING_LOG("permission denied for %s\n", dirname); + if (ret < 0) { /* Non-fatal, continue with next dir */ + WARNING_LOG("skipping dir %s: %s\n", dirname, + adu_strerror(-ret)); return 1; } while ((entry = readdir(dir))) { diff --git a/format.h b/format.h index 1e795c6..69d34f5 100644 --- a/format.h +++ b/format.h @@ -44,7 +44,7 @@ enum atom_type { */ struct atom { /** The name of the directive. */ - const char const *name; + const char *name; /** Its type. */ enum atom_type type; }; diff --git a/index.html.in b/index.html.in index ee7bcad..7669d6f 100644 --- a/index.html.in +++ b/index.html.in @@ -104,9 +104,13 @@ -

André Noll, maan@tuebingen.mpg.de -

Comments and bug reports are welcome. Please provide +

Email: André Noll, maan@tuebingen.mpg.de, + Homepage: http://people.tuebingen.mpg.de/maan/ +

+ + Comments and bug reports are welcome. Please provide enough info such as the version of adu/libosl you are using and relevant parts of the logs. Including the string [adu] in the subject line is also a good idea. diff --git a/interactive.c b/interactive.c index 61b4f29..0ed0d82 100644 --- a/interactive.c +++ b/interactive.c @@ -146,7 +146,7 @@ static int icom_set(char *line) static int exec_interactive_command(char *line) { - const char const *delim = "\t\n\f\r\v "; + const char *delim = "\t\n\f\r\v "; int i; char *cmd, *args; int ret = -E_SYNTAX; diff --git a/select.c b/select.c index e000992..a1fc1c2 100644 --- a/select.c +++ b/select.c @@ -168,7 +168,7 @@ struct user_summary_loop_data { static FILE *output_file; -__printf_1_2 static int output(const char const *fmt, ...) +__printf_1_2 static int output(const char *fmt, ...) { va_list argp; int ret;