* initialize user variable with NULL
* add -u to option summary line
Signed-off-by: Ralph Boehme <rb@sernet.de>
static void usage (void)
{
- printf("Usage: dbd [-cfFstvV] <path to netatalk volume>\n\n"
+ printf("Usage: dbd [-cfFstuvV] <path to netatalk volume>\n\n"
"dbd scans all file and directories of AFP volumes, updating the\n"
"CNID database of the volume. dbd must be run with appropiate\n"
"permissions i.e. as root.\n\n"
AFPObj obj = { 0 };
struct vol *vol = NULL;
const char *volpath = NULL;
- char *username;
+ char *username = NULL;
int c;
while ((c = getopt(argc, argv, ":cfF:rstu:vV")) != -1) {
switch(c) {