]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-aklog-chatty-20081025
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sun, 26 Oct 2008 01:00:07 +0000 (01:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 26 Oct 2008 01:00:07 +0000 (01:00 +0000)
LICENSE IPL10

make aklog not accidentally be chatty

(cherry picked from commit f2014112bcc27ecc1426ef078af7456285d839d2)

src/aklog/aklog_main.c

index 5dbbf2bc35a1d4012486085f19597c1ae137b77f..b7b656f20eb9d17754d482924e55989ed4128c22 100644 (file)
@@ -528,8 +528,10 @@ static int auth_to_cell(krb5_context context, char *cell, char *realm)
                                    "%s.\n", progname, cell_to_use);
                            exit(AKLOG_MISC);
                        }
-                       printf("We've deduced that we need to authenticate to"
-                              " realm %s.\n", realm_of_cell);
+                       if (dflag) {
+                           printf("We've deduced that we need to authenticate"
+                                  " to realm %s.\n", realm_of_cell);
+                       }
                    }
                    status = get_credv5(context, AFSKEY, cell_to_use, 
                                        realm_of_cell, &v5cred);